plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

Load file using tauri-plugin-sql

Open Rasool-deldar opened this issue 1 year ago • 1 comments

I want to load a test.db file in the program using your plugin. I created the database structure file myself, and now how should I load the test.db file?

Rasool-deldar avatar Sep 01 '24 08:09 Rasool-deldar

Right now there's isn't a nice way to do it. The plugin expects you to rely on migrations for that. Alternatively you can write the database file into the AppDataDir() folder before loading it. Having this built-in would probably be nice, basically https://github.com/tauri-apps/plugins-workspace/issues/1155 but writable.

FabianLars avatar Sep 03 '24 09:09 FabianLars