From 2daaacef047718856623f43ea55d09abfa2a2dd7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 22 Oct 2015 11:58:25 -0400 Subject: - update the pool pessimistic invalidation recipe to refer to the engine_connect event, allowing easy detection of disconnects and full invalidation of the pool --- lib/sqlalchemy/events.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1