Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- if( !window.openDatabase) {
- console.log('SQLite is not supported by this browser');
- }
- else {
- db = openDatabase('MyMobileDb', '1.0', 'MyMobileDb', 65536);
- if (doreset)
- {
- //my drop and reset DB function
- } else
- {
- //my init DB function
- }
- }
- }
- catch(e) {
- console.log(e);
- }
- // Initialise local db
- var mydb = new DbConnection().getDb();
- mydb.transaction(function(transaction){
- transaction.executeSql(...
Add Comment
Please, Sign In to add comment