How to use sqlite storage in ionic2 Electron desktop application

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?

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.

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?