How to use sqlite storage in ionic2 Electron desktop application


#1

I am trying to create a desktop applictaion using electron and ionic2.I want to use sqlite in my application.How to implement that? can i use cordova sqlite in an electron desktop appliation?


#2

No, the cordova sqlite plugin is not supported in an electron env.
A better option instead of sqlite would be to use indexDB instead, which is supported in electron and cordova.

This is what @ionic/storage is for.


#3

I want to make my desktop application work offline.I choose sqlite db for app and mysql in server.Can i use sqlite3 with ionic eletcron app?