How to upload sqlite db dump?

#1

How can send db dump via email?

0 Likes

#2

I’m not sure if its possible to do a dump of the entire database. It might be with the filesystem API. @nikki do you know?

0 Likes

#3

Hmm… You could use fetch to POST the database file, the file:// URI of the file locally is Expo.FileSystem.documentDirectory + 'SQLite/dbname.db' (replace 'dbname.db' with the name of your database file). https://github.com/expo/image-upload-example/blob/master/frontend/main.js#L155-L187 here’s some example code for uploading a file given a file:// URI.

1 Like