Thank you very much for kind words.
Hi
thanks for your shared code, but what about pre-populated databases ? for example I am developing a book reading app and the book pages are saved in a Sqlite database. can this ionic storage read from existing database included in project !?
please donāt replay with itās a bad choice to include a database file in apk
Books are generally read sequentially. Do you have/need the ability to search for particular text?
Yes, and i am looking to find the best and complete solution to work with sqlite in ionic3 to have a db-provider that can be reused in my other projects with no need to test it again
Hi and thanks for your help.
but are you sure this line of code can load a pre-populated database (from /www folder of App) when we are testing in browser!?
That line is for WebSQL database. I donāt understand why would you take database from /www folder?
You can see all available databases by follow:
- Right click in browser
- Select āInspectā
- āApplicationā tab -> Under āStorageā -> Expand āWeb SQLā
Great solution. Very helpful, thanks. Great to accelerate development!
Thank you! Glad to hear that solution is useful to you.