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:
Musa Haidari 2017-03-06 03:10:24 +04:30 committed by Ibby Hadeed
parent f11be169b0
commit 683b808f27

View File

@ -21,7 +21,7 @@ declare var sqlitePlugin;
* })
* .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));
@ -33,7 +33,7 @@ declare var sqlitePlugin;
* name: 'data.db',
* location: 'default' // the location field is required
* }).then(() => {
* db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {
* db.executeSql('create table danceMoves(name VARCHAR(32))', []).then(() => {
*
* }, (err) => {
* console.error('Unable to execute sql: ', err);