Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpickin/b043c9548e099fd5e497 to your computer and use it in GitHub Desktop.
Save gpickin/b043c9548e099fd5e497 to your computer and use it in GitHub Desktop.
Getting Started with WebSQL in your Mobile App - Code 1
var dbSize = 5 * 1024 * 1024; // 5mb initial database
var db = openDatabase(“GavinsDB", "", “Gavins DB", dbSize,
function() {
console.log('db successfully opened or created');
},
function() {
console.log('db error');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment