We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is possible to use this component to support SQLite database access on browser along with other Cordova platforms.
const newPromiseHelper = require('sql-promise-helper').newPromiseHelper; const db = (window.cordova.platformId === 'browser') ? window.openDatabase('my.db', '1.0', 'Test', 2*1024*1024) : window.sqlitePlugin.openDatabase({name: 'my.db', location: 'default'}); const helper = newPromiseHelper(db); helper.executeStatement('SELECT UPPER(?) AS myResult', ['String test']).then(function(rs) { console.log('GOT RESULT: ' + rs.rows.item(0).myResult); });
(lower database size limit is needed to avoid a permission request popup on Safari browser)
This sample will use Web SQL on browser but not on any other platforms, avoiding a possible pitfall in case of missing sqlite plugin.
I will document this when I get a chance, hopefully someday soon.
The text was updated successfully, but these errors were encountered:
brodycj
No branches or pull requests
It is possible to use this component to support SQLite database access on browser along with other Cordova platforms.
(lower database size limit is needed to avoid a permission request popup on Safari browser)
This sample will use Web SQL on browser but not on any other platforms, avoiding a possible pitfall in case of missing sqlite plugin.
I will document this when I get a chance, hopefully someday soon.
The text was updated successfully, but these errors were encountered: