tauri-plugin-sqlite icon indicating copy to clipboard operation
tauri-plugin-sqlite copied to clipboard

Tauri retart after each insert in database!,Why? and How to overcome it?

Open ian-moh opened this issue 1 year ago • 3 comments

ian-moh avatar Jul 07 '23 17:07 ian-moh

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

ian-moh avatar Jul 07 '23 17:07 ian-moh

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)

KamelHtira avatar Jul 31 '23 13:07 KamelHtira

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

Thisishemmit avatar Oct 29 '23 00:10 Thisishemmit