r2d2
r2d2 copied to clipboard
Is there a way to drop all connections?
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?
I'd probably just replace the entire pool.
I did try this way, but it seems doesn't work. Maybe connections didn't get dropped immediately?
There can be some operations running in the background that would hold onto connections for a little bit after the pool drops.
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
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