Guest User

Untitled

a guest
Jul 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. try {
  2. if( !window.openDatabase) {
  3. console.log('SQLite is not supported by this browser');
  4. }
  5. else {
  6. db = openDatabase('MyMobileDb', '1.0', 'MyMobileDb', 65536);
  7. if (doreset)
  8. {
  9. //my drop and reset DB function
  10. } else
  11. {
  12. //my init DB function
  13. }
  14. }
  15. }
  16. catch(e) {
  17. console.log(e);
  18. }
  19.  
  20. // Initialise local db
  21. var mydb = new DbConnection().getDb();
  22.  
  23. mydb.transaction(function(transaction){
  24. transaction.executeSql(...
Add Comment
Please, Sign In to add comment