[sqlalchemy] Re: How to close database connection of a session?

2013-05-17 Thread Bozhidar Cherkezov
Is *session.bind.dispose() *the same as *Engine.dispose()*? I'm asking that because the docs says ***A new connection pool is created immediately after the old one has been disposed*, so you are destroying all connections in the pool to destroy one? I'm asking that because I need to close the

[sqlalchemy] Re: How to close database connection of a session?

2011-04-05 Thread León
Hi, I'm using session.bind.dispose() León On 5 abr, 07:47, Gary Shi gary...@gmail.com wrote: I found session.close() doesn't close the database connection (by calling session.close and sleep, then check the network connections), neither session.connection().close(). How to close the