I have a quick question with Sqldelight, I’m looki...
# squarelibraries
m
I have a quick question with Sqldelight, I’m looking to export the database, but unable to have it, I found two instances one in the data/package/databases... and another one in Intellij Idea in src/main/sqldelight/databases/1.db (it’s the path that I used in gradle) Both db are empty (the structure is good, but no data) I know for sure that there are some records, but nothing exported, do you have an idea?
m
The actual data should be on your device, not on your host machine. On Android, you pass a name to
AndroidSqliteDriver
and IIRC, this ends up in the app storage which you can browse using the
Device File Explorer
(which is in intelliJ but the actual files are on your device).
m
Yes thanks, but I’m looking here on the device: /data/data/com.packages/databases/app.db But the app.db is empty (structure ok) but no records, but there are. Is it the correct location?
m
On my device, it's at '/data/data/com.example/databases/app.db'
So same as you
m
Ok thank you very much. I’ll dig into that so to verify what is happening on my device