1import { SQLite, SQLiteObject } from '@ionic-native/sqlite/ngx';
2
3constructor(private sqlite: SQLite) { }
4
5...
6
7this.sqlite.create({
8 name: 'data.db',
9 location: 'default'
10})
11 .then((db: SQLiteObject) => {
12
13
14 db.executeSql('create table danceMoves(name VARCHAR(32))', [])
15 .then(() => console.log('Executed SQL'))
16 .catch(e => console.log(e));
17
18
19 })
20 .catch(e => console.log(e));
21