Ability to Import/Export from web database? #2875
-
I was wondering what it would take to import/export data for the web WASM implementation of Drift. I was able to figure out how to export the encrypted database using a bit of Googling, but the web database is such a different creature, that I'm not sure where to begin to allow import export. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unfortunately, this is something that is not well supported yet. We don't have access to a uniform file system on the web. Instead, we have to pick the best thing that works in the current browser, which may be something resembling a file system (but only available through a worker) or a custom file system stub built by storing chunks of blob data in IndexedDb. At the moment, there is no unified API to the file system layer on the web. You can import an existing database the first time it's accessed with the |
Beta Was this translation helpful? Give feedback.
#2777 is an existing issue tracking this.