errorCallback);// default - if your folder is called www and data file is named the same as the dbName - testDB in this example2.SQLite.openDatabase({name:"testDB",createFromLocation:"~data/mydbfile.sqlite"},okCallback,errorCallback);// if your folder is called data rather than ww...
As react-native-sqlite-storage original repository is kind of industry standard for React Native and is used in a lot of awesome library (typeorm for example), using an alias make us able to use this package as it was the original one, so package that depend on react-native-sqlite-storage...
...1.SQLite.openDatabase({name:"testDB",createFromLocation:1},okCallback,errorCallback);// default - if your folder is called www and data file is named the same as the dbName - testDB in this example2.SQLite.openDatabase({name:"testDB",createFromLocation:"~data/mydbfile.sqlite"}...
For full working example see test/index.ios.callback.js. Please note that Promise based API is now supported as well with full examples in the working React Native app under test/index.ios.promise.js errorCB(err) { console.log("SQL Error: " + err); }, successCB() { console.log("...
openDatabase({name : "testDB", createFromLocation : 1}); // default - if your folder is called www and data file is named the same as the dbName - testDB in this example 2.SQLite.openDatabase({name : "testDB", createFromLocation : "~data/mydbfile.sqlite"}); // if your ...
openDatabase({name : "testDB", createFromLocation : 1}, okCallback,errorCallback); // default - if your folder is called www and data file is named the same as the dbName - testDB in this example 2.SQLite.openDatabase({name : "testDB", createFromLocation : "~data/mydbfile....
...1.SQLite.openDatabase({name:"testDB",createFromLocation:1},okCallback,errorCallback);// default - if your folder is called www and data file is named the same as the dbName - testDB in this example2.SQLite.openDatabase({name:"testDB",createFromLocation:"~data/mydbfile.sqlite"}...
openDatabase({name : "testDB", createFromLocation : 1}, okCallback,errorCallback); // default - if your folder is called www and data file is named the same as the dbName - testDB in this example 2.SQLite.openDatabase({name : "testDB", createFromLocation : "~data/mydbfile....
Use this flavor of openDatabase call, if your folder is called www and data file is named the same as the dbName - testDB in this example SQLite.openDatabase({name:"testDB",createFromLocation:1},okCallback,errorCallback); Use this flavor of openDatabase call if your folder is called...
...1.SQLite.openDatabase({name:"testDB",createFromLocation:1},okCallback,errorCallback);// default - if your folder is called www and data file is named the same as the dbName - testDB in this example2.SQLite.openDatabase({name:"testDB",createFromLocation:"~data/mydbfile.sqlite"}...