Ionic-native sqlite issue

Thank you very much for kind words. :slight_smile:

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 :wink:

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:

  1. Right click in browser
  2. Select ā€˜Inspectā€™
  3. ā€˜Applicationā€™ tab -> Under ā€˜Storageā€™ -> Expand ā€˜Web SQLā€™

Great solution. Very helpful, thanks. Great to accelerate development!

1 Like

Thank you! Glad to hear that solution is useful to you. :slight_smile: