Hi all! When I use SqlDelight then how to drop dat...
# multiplatform
f
Hi all! When I use SqlDelight then how to drop database when application installed? Can it do without migrations?
m
You might find more help in #squarelibraries
I guess you could just delete the files on the filesystem for each platform implementation. Or maybe use in-memory temp tables for actual MPP?
f
Yes, that's exactly what I have to do. I am surprised that the database is not deleted automatically even if I deleted the application on the Android device. Or am I doing something wrong or is this a major mistake from data security.
m
Maybe you have auto-backup enabled
An old version of your DB might be restored when you re-install the app
Not sure if that could happen during development
The other option is if you're storing your DB in external storage. This is not always flushed when uninstalling the app
f
Most likely this is the option
383 Views