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

When will the .db-journal file be generated when I don't have any operational database in my project? #470

Open
NewJinLn opened this issue Jul 3, 2024 · 1 comment

Comments

@NewJinLn
Copy link

NewJinLn commented Jul 3, 2024

Hello, I use SQlite in my project. When the project is running and I make sure that no service does anything to the database, the .db-journal file appears in the folder, but disappears after a while. I don't know why the .db-journal file appears when there is no service to perform database operations, causing my other operations to fail, such as copying folders. Can you tell me under what conditions the .db-journal file appears in sqlite itself? For example, whether there are self-acts such as reclaiming space. I'm looking forward to your answer to my doubt. Thank you.

@NewJinLn
Copy link
Author

NewJinLn commented Jul 4, 2024

I looked in the manual and found a note in https://www.sqlite.org/tempfiles.html that said, "The rollback journal is usually created and destroyed at the start and end of a transaction, respectively. There are exceptions to this rule." What is the exception to this rule?

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

1 participant