On Mon, Apr 2, 2018 at 1:10 PM, Jonathan Vanasco <[email protected]> wrote:
> a question came up in another list, and I just wanted to confirm a behavior
>
> it looks like `engine.dispose()` doesn't explicitly `close()` any open
> connections, but they inherently get closed by the method's behavior. is
> that right?

engine.dispose() calls dispose() on the pool which will close
connections that are currently checked in.   That connection pool is
then discarded.   Connections that are checked out stay open, they
still refer to that dereferenced pool, and I think at the moment they
don't get closed until they are garbage collected along with that pool
object.

>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to