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

Is there a way to drop all connections? #101

Open
zhangli-pear opened this issue Apr 23, 2020 · 5 comments
Open

Is there a way to drop all connections? #101

zhangli-pear opened this issue Apr 23, 2020 · 5 comments

Comments

@zhangli-pear
Copy link

I'm using Sqlite, and it sometime has integrity problems. When this happen, I simply delete the file.
However there are some connections still open the database, it can not be deleted.

Is this problem can be solved? in any way?

@sfackler
Copy link
Owner

I'd probably just replace the entire pool.

@zhangli-pear
Copy link
Author

I did try this way, but it seems doesn't work. Maybe connections didn't get dropped immediately?

@sfackler
Copy link
Owner

There can be some operations running in the background that would hold onto connections for a little bit after the pool drops.

@bkontur
Copy link

bkontur commented Jul 22, 2020

I would also need something like this.
I would like to destroy pool manually and be sure, that CustomizeConnection.on_release is trigger on every connection.
Is there any possibility right now?
Thx

@link2xt
Copy link

link2xt commented Apr 16, 2022

I did try this way, but it seems doesn't work. Maybe connections didn't get dropped immediately?

There is an open bug about it: #99

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

4 participants