Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ian-moh opened this issue Jul 7, 2023 · 3 comments

Comments

@ian-moh
Copy link

ian-moh commented Jul 7, 2023

No description provided.

@ian-moh
Copy link
Author

ian-moh commented Jul 7, 2023

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

@KamelHtira
Copy link

KamelHtira commented Jul 31, 2023

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)

@Thisishemmit
Copy link

Thisishemmit commented Oct 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants