I\'m building an HTML5/Phonegap mobile application and I want to use an existing SQLite database through WebSQL. By an \"existing\" database I mean I had already created the db.
WebSQl has that gotcha. Open database without version and then do version migration, eg:
var db = openDatabase('mydb', '', 'my first database', 2 * 1024 * 1024); if (db.version != '1.0) { ... }