Database empty in specific cases
I'm working with the follow configuration
{ name: 'db', createFromLocation: 'mydatabase.db' }
And so far woking. The problem is when I open the file using SQLiteStudio for example, the database it's empty.
I would like to keep a backup from my database, so I'm using react-native-fs to copy the database file, but when I read the file it shows (0 size)
What could I be doing wrong, that I can't get the real data?
having the same problem
Sorry for delayed reponse. I need more details..can't do much with info you provided.
This is the doc about opening database using pre-populated asset. See doc.
Which database is empty for you/
I'm working with the follow configuration
{ name: 'db', createFromLocation: 'mydatabase.db' }And so far woking. The problem is when I open the file using SQLiteStudio for example, the database it's empty.
I would like to keep a backup from my database, so I'm using
react-native-fsto copy the database file, but when I read the file it shows (0 size)What could I be doing wrong, that I can't get the real data?
I have the same problem, did you have a fix?