diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-10-22 11:58:25 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-10-22 11:58:25 -0400 |
| commit | 2daaacef047718856623f43ea55d09abfa2a2dd7 (patch) | |
| tree | b161eb95b3e4dd31dc58948626023e7b275f0076 /lib/sqlalchemy/events.py | |
| parent | 8a4a1fd70ab939b9a8572343bb3a9529449a5cec (diff) | |
| download | sqlalchemy-2daaacef047718856623f43ea55d09abfa2a2dd7.tar.gz | |
- update the pool pessimistic invalidation recipe to refer to the
engine_connect event, allowing easy detection of disconnects
and full invalidation of the pool
Diffstat (limited to 'lib/sqlalchemy/events.py')
| -rw-r--r-- | lib/sqlalchemy/events.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/events.py b/lib/sqlalchemy/events.py index f439d554f..0249b2623 100644 --- a/lib/sqlalchemy/events.py +++ b/lib/sqlalchemy/events.py @@ -819,6 +819,11 @@ class ConnectionEvents(event.Events): .. seealso:: + :ref:`pool_disconnects_pessimistic` - illustrates how to use + :meth:`.ConnectionEvents.engine_connect` + to transparently ensure pooled connections are connected to the + database. + :meth:`.PoolEvents.checkout` the lower-level pool checkout event for an individual DBAPI connection |
