[SQLite] Built executables fail on SQLite connection #6370
-
Hello, I am trying to build a Tauri application with a SQLite database. My folder structure is:
In my
This works well when developing, but I get an error when trying to execute the built files. What is the recommended way to have a Tauri app working with SQLite? Should I put my db/ folder in I also have a question on this topic: If I enable the Updater, and a new update is installed, will the database be replaced by the one from the updated version? How could I manage to update only the code & not the data? I run my migrations at runtime with the diesel macro Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Adding it as a resource, or completely creating it at runtime (without bundling it) would indeed be the solution here. For the updater thingy, if you create the database in a user data dir (like app_data_dir for example) this would not be a concern, and it would add cross-platform compatibility too. |
Beta Was this translation helpful? Give feedback.
Adding it as a resource, or completely creating it at runtime (without bundling it) would indeed be the solution here.
For the updater thingy, if you create the database in a user data dir (like app_data_dir for example) this would not be a concern, and it would add cross-platform compatibility too.