tauri-plugin-sqlite
tauri-plugin-sqlite copied to clipboard
Tauri retart after each insert in database!,Why? and How to overcome it?
Info File src-tauri/vizio.db changed. Rebuilding application...
Finished dev [unoptimized + debuginfo] target(s) in 0.59s
Info File src-tauri/vizio.db changed. Rebuilding application...
Finished dev [unoptimized + debuginfo] target(s) in 0.77s
I guess any insert in the database will be detected a change in project files, so rust will recompile. The solution is moving the database to another folder. :: open (otherPath)
The problem is this:
You update/modify database > rust was watching you > decides to make problems for you. You need to tell rust stop watching me ugly B.
How? Create a file in src-tauri called .taruignore
and add those line into it
*.db
*.sqlite