Reputation: 31
I have created an app with ionic 3. I have used sqlite for database. I want to export database to a folder (outside of my app) and want to see all my back up database file in a list. Then I will choose any backup file and import to my database with file chooser.
Please help me. Thanks in advance.
Upvotes: 1
Views: 947
Reputation: 2529
You can simply create a text file and store JSON encoded data inside it and later decode the data to store it back in the database.
Use Ionic Native File plugin for reading, creating and writing a file: https://ionicframework.com/docs/native/file/
Upvotes: 2