Database caching for Tauri - Diesel and SQLite #6741
Closed
rsteaburdea
started this conversation in
General
Replies: 1 comment
-
It was a problem with a database path and the topic is much related with diesel and rust rather than tauri. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am trying to build a small app with Tauri and SQLite database with Diesel ORM and every time I start the app with yarn tauri dev it will bring the first data from the migration script of the database (diesel migration run). Even if I remove the database it will bring the same data. It feels like the data is cached somehow. Even if I update the migration script with more entries or update the database manually, the new data won't appear.
For Cargo.toml I have this dependencies:
The method that I am using to select the data is this:
The establish_connection method looks like this:
I've tried also with this:
But I get some error.
Is this a bug or am I doing something wrong?
Also there is a topic on stackoverflow that you can find it here.
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions