]> 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 01:00:14 +0000 (20:00 -0500)
commitc7de21b92cc072750607eef88f729f8cc20a6fb0
tree30313e42454a3ffce946ebda704ddf990f93383a
parent167d0812a0ec9bf7261c3b8f704c401f8a61ad36
- 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

(cherry picked from commit cf7981f60d485f17465f44c6ff651ae283ade377)
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/session.py
test/orm/test_session.py
test/orm/test_transaction.py