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

[sql] How to specify the directory when load a sqlite file.

Open chumomo opened this issue 2 years ago • 8 comments

Default is to save/load in roaming folder, how to change the base folder? Thanks!

chumomo avatar Mar 10 '23 17:03 chumomo

This is not yet possible. I did start working on it here https://github.com/tauri-apps/plugins-workspace/tree/sql/absolute-paths but had to focus on other things. With this change you'll be able to specify absolute paths and specify a different base directory (https://tauri.app/v1/api/js/fs/#basedirectory)

FabianLars avatar Mar 12 '23 16:03 FabianLars

Is there any update on this enchancement?

yipjunkai avatar May 19 '23 09:05 yipjunkai

no

FabianLars avatar May 19 '23 11:05 FabianLars

Is this actually still planned? The link provided above doesn't work anymore. I'm wondering if I can start using the sql plugin now with paths relative to ...BaseDirectory::App and migrate to custom paths later as soon as they get available.

Otherwise I'd need to look for an alternative approach. (What I need is basically some sort of file format that acts as a "document" the user can open with the app I'm developing. And SQLite would be great for that.)

alinnert avatar Apr 17 '25 17:04 alinnert

Yes, still planned. Unforeseen life stuff happened so I never got to it but I hope I can spend some time on the plugin soon.

FabianLars avatar Apr 17 '25 17:04 FabianLars

Alright, no problem. Life comes first!

alinnert avatar Apr 20 '25 14:04 alinnert