How to use the @ionic-native/sqlite.SQLite function in @ionic-native/sqlite

To help you get started, we’ve selected a few @ionic-native/sqlite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sqlite-sync / SQLite-sync.com / Ionic / SqliteSyncDemo / src / providers / sqlite-service / sqlite-service.ts View on Github external
openDatabase(){
    let name = 'sqlitesynccom_demo';
    let loading = this.loadingCtrl.create({
      content: 'Opening database. Please wait...'
    });
    loading.present();
    let sqlite_db = new SQLite();
    sqlite_db.create({ name: name, location: 'default' }).then((db: SQLiteObject) => {
      sqlitesync_DB = db;
      Promise.all([
        this.getTables()
      ]).then(val => {
        loading.dismiss();
      });
    }, (error) => {
      loading.dismiss();
      let alert = this.alertCtrl.create({
        title: 'Error',
        message: 'Error while opening database: ' + error,
        buttons: ['Close']
      });
      alert.present();
    });
github sqlite-sync / SQLite-sync.com / amplisync-clients / Ionic / SqliteSyncDemo / src / providers / sqlite-sync / sqlite-sync.ts View on Github external
return new Promise((resolve,reject) => {
      let name = "sqlitesynccom_demo";
      let sqlite_db = new SQLite();
      sqlite_db.create({
        name: name,
        location: 'default'
      }).then((db: SQLiteObject) => {
        resolve(db);
      }, (err) => {
        reject(err);
      });
    });
  }

@ionic-native/sqlite

Ionic Native - Native plugins for ionic apps

MIT
Latest version published 3 years ago

Package Health Score

75 / 100
Full package analysis

Popular @ionic-native/sqlite functions

Similar packages