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

How to close file handle on a local sqlite db? #7252

Open
sawyersteven opened this issue Oct 23, 2024 · 0 comments
Open

How to close file handle on a local sqlite db? #7252

sawyersteven opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
type:question general questions

Comments

@sawyersteven
Copy link

Your Question

I'm using Gorm to access a sqlite db from the local filesystem. I'm writing tests now that require me to create and delete this sqlite file. Gorm seems to keep an open file handle on the db until the application terminates, so it is not possible to delete the db in the test cleanup.

Gorm should be able to completely disconnect from a db.

The document you expected this should be explained

Expected answer

@sawyersteven sawyersteven added the type:question general questions label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question general questions
Projects
None yet
Development

No branches or pull requests

2 participants