]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added new method :meth:`.Session.invalidate`, functions similarly
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Dec 2014 00:59:11 +0000 (19:59 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Dec 2014 00:59:11 +0000 (19:59 -0500)
commitcf7981f60d485f17465f44c6ff651ae283ade377
treeb0301ee05ec7cfd3134eddb751a2257e59b31edf
parent08e02579e03bf37cfc742c549b837841ec8f7ffe
- Added new method :meth:`.Session.invalidate`, functions similarly
to :meth:`.Session.close`, except also calls
:meth:`.Connection.invalidate`
on all connections, guaranteeing that they will not be returned to
the connection pool.  This is useful in situations e.g. dealing
with gevent timeouts when it is not safe to use the connection further,
even for rollbacks.
references #3258
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/session.py
test/orm/test_session.py
test/orm/test_transaction.py