I know that I need to import Storage and SqlStorage.
I know that I need to initialize my db:
this.db = new Storage(SqlStorage);
I should be able to execute query like
this.db.query('select * from table_name), etc.
What I don’t understand is the table creation!
After I did my new Storage, I tried to execute this line below in my constructor:
this.db.query('create table myTable (id integer)');
When looking in the Chrome developer tool, I can see the _ionicstorage (normal, I did not put any database name) and the “kv” table (where that table comes from?). Why ‘myTable’ is not there?
What am I missing?
Also, I noticed in the Chrome developer tool that warning:
Storage: SQLite plugin not installed, falling back to WebSQL. Make sure to install cordova-sqlite-storage in production!
Do I really need to add the SQLite plugin to my app or it is to the Chrome dev tool?