mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
docs(sqlite): syntax error resolved (#1142)
* Syntax error resolved The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect. * Fixed a syntax error
This commit is contained in:
parent
f11be169b0
commit
683b808f27
@ -21,7 +21,7 @@ declare var sqlitePlugin;
|
|||||||
* })
|
* })
|
||||||
* .then((db: SQLite) => {
|
* .then((db: SQLite) => {
|
||||||
*
|
*
|
||||||
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {}).catch(() => {});
|
* db.executeSql('create table danceMoves(name VARCHAR(32))', []).then(() => {}).catch(() => {});
|
||||||
*
|
*
|
||||||
* })
|
* })
|
||||||
* .catch(error => console.error('Error opening database', error));
|
* .catch(error => console.error('Error opening database', error));
|
||||||
@ -33,7 +33,7 @@ declare var sqlitePlugin;
|
|||||||
* name: 'data.db',
|
* name: 'data.db',
|
||||||
* location: 'default' // the location field is required
|
* location: 'default' // the location field is required
|
||||||
* }).then(() => {
|
* }).then(() => {
|
||||||
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {
|
* db.executeSql('create table danceMoves(name VARCHAR(32))', []).then(() => {
|
||||||
*
|
*
|
||||||
* }, (err) => {
|
* }, (err) => {
|
||||||
* console.error('Unable to execute sql: ', err);
|
* console.error('Unable to execute sql: ', err);
|
||||||
|
Loading…
Reference in New Issue
Block a user