if you don't want connections to be pooled, instead closed immediately, send "poolclass=NullPool" to create_engine().
docs: http://www.sqlalchemy.org/docs/core/pooling.html#switching-pool-implementations On Apr 5, 2011, at 1:47 AM, Gary Shi 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 connection > without quit my application? > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
