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

sqlite file cannot be closed #6

Closed
johnpoint opened this issue Sep 7, 2020 · 1 comment
Closed

sqlite file cannot be closed #6

johnpoint opened this issue Sep 7, 2020 · 1 comment
Assignees

Comments

@johnpoint
Copy link

sqlite file cannot be closed

sqlDB, _ = db.DB()
fmt.Println(sqlDB.Ping())
fmt.Println(sqlDB.Close())
fmt.Println(sqlDB.Ping())

output:

<nil>
<nil>
sql: database is closed

but when I use the lsof -p command, I can still see that many database files are opened

@jinzhu
Copy link
Member

jinzhu commented Sep 9, 2020

doesn't seems like a GORM issue.

@jinzhu jinzhu closed this as completed Sep 9, 2020
samuelncui pushed a commit to samuelncui/gorm-sqlite that referenced this issue Oct 4, 2023
…ub.com/glebarez/go-sqlite-1.14.6

Bump github.com/glebarez/go-sqlite from 1.14.5 to 1.14.6
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

2 participants