From 8fc5005dfe3eb66a46470ad8a8c7b95fc4d6bdca Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 6 Aug 2009 21:11:27 +0000 Subject: merge 0.6 series to trunk. --- lib/sqlalchemy/interfaces.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/sqlalchemy/interfaces.py') diff --git a/lib/sqlalchemy/interfaces.py b/lib/sqlalchemy/interfaces.py index dfceffe44..e4a9adee1 100644 --- a/lib/sqlalchemy/interfaces.py +++ b/lib/sqlalchemy/interfaces.py @@ -71,6 +71,18 @@ class PoolListener(object): """ + def first_connect(self, dbapi_con, con_record): + """Called exactly once for the first DB-API connection. + + dbapi_con + A newly connected raw DB-API connection (not a SQLAlchemy + ``Connection`` wrapper). + + con_record + The ``_ConnectionRecord`` that persistently manages the connection + + """ + def checkout(self, dbapi_con, con_record, con_proxy): """Called when a connection is retrieved from the Pool. -- cgit v1.2.1