summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/interfaces.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-01-12 23:22:47 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-01-12 23:22:47 +0000
commit8138e70d63216381b9b3cb7a64750a3add154ec6 (patch)
treeee798a4a4851af4431d738bce0c1b99b6b8267c7 /lib/sqlalchemy/interfaces.py
parent55f930ef3d4e60bed02a2dad16e331fe42cfd12b (diff)
parenta6094d6682c956ce8a77fbec2a2700f901f3e75e (diff)
downloadsqlalchemy-8138e70d63216381b9b3cb7a64750a3add154ec6.tar.gz
Merge "use ..deprecated directive w/ version in all cases"
Diffstat (limited to 'lib/sqlalchemy/interfaces.py')
-rw-r--r--lib/sqlalchemy/interfaces.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/sqlalchemy/interfaces.py b/lib/sqlalchemy/interfaces.py
index 80b1f763a..0caf85a23 100644
--- a/lib/sqlalchemy/interfaces.py
+++ b/lib/sqlalchemy/interfaces.py
@@ -8,8 +8,12 @@
"""Deprecated core event interfaces.
-This module is **deprecated** and is superseded by the
-event system.
+
+.. deprecated:: 0.7
+ As of SQLAlchemy 0.7, the new event system described in
+ :ref:`event_toplevel` replaces the extension/proxy/listener system,
+ providing a consistent interface to all events without the need for
+ subclassing.
"""
@@ -20,10 +24,11 @@ from . import util
class PoolListener(object):
"""Hooks into the lifecycle of connections in a :class:`.Pool`.
- .. note::
+ .. deprecated:: 0.7
- :class:`.PoolListener` is deprecated. Please
- refer to :class:`.PoolEvents`.
+ :class:`.PoolListener` is deprecated and will be removed in a future
+ release. Please refer to :func:`.event.listen` in conjunction with
+ the :class:`.PoolEvents` listener interface.
Usage::
@@ -156,10 +161,11 @@ class PoolListener(object):
class ConnectionProxy(object):
"""Allows interception of statement execution by Connections.
- .. note::
+ .. deprecated:: 0.7
- :class:`.ConnectionProxy` is deprecated. Please
- refer to :class:`.ConnectionEvents`.
+ :class:`.ConnectionProxy` is deprecated and will be removed in a future
+ release. Please refer to :func:`.event.listen` in conjunction with
+ the :class:`.ConnectionEvents` listener interface.
Either or both of the ``execute()`` and ``cursor_execute()``
may be implemented to intercept compiled statement and