diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-04-11 14:21:13 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-07-15 22:48:47 -0400 |
commit | dfb20f07d8796ec27732df84c40b4ce4857fd83b (patch) | |
tree | b1dbb5180db5ec218b1c8ad9a6b9bd5cc0bfadf9 /lib/sqlalchemy/engine/interfaces.py | |
parent | 26ef5ed862270bda4ab6abe544add9f8bb7ac72f (diff) | |
download | sqlalchemy-dfb20f07d8796ec27732df84c40b4ce4857fd83b.tar.gz |
Remove threadlocal engine strategy, engine strategies pool threadlocal
The "threadlocal" execution strategy, deprecated in 1.3, has been
removed for 1.4, as well as the concept of "engine strategies" and the
``Engine.contextual_connect`` method. The "strategy='mock'" keyword
argument is still accepted for now with a deprecation warning; use
:func:`.create_mock_engine` instead for this use case.
Fixes: #4632
Change-Id: I8a351f9fa1f7dfa2a56eec1cd2d1a4b9d65765a2
(cherry picked from commit b368c49b44c5716d93c7428ab22b6761c6ca7cf5)
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/engine/interfaces.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index aadadb845..4a63e3d84 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -1125,30 +1125,6 @@ class Connectable(object): """ @util.deprecated( - "1.3", - "The :meth:`.Engine.contextual_connect` and " - ":meth:`.Connection.contextual_connect` methods are deprecated. This " - "method is an artifact of the threadlocal engine strategy which is " - "also to be deprecated. For explicit connections from an " - ":class:`.Engine`, use the :meth:`.Engine.connect` method.", - ) - def contextual_connect(self, *arg, **kw): - """Return a :class:`.Connection` object which may be part of an ongoing - context. - - Depending on context, this may be ``self`` if this object - is already an instance of :class:`.Connection`, or a newly - procured :class:`.Connection` if this object is an instance - of :class:`.Engine`. - - """ - - return self._contextual_connect(*arg, **kw) - - def _contextual_connect(self): - raise NotImplementedError() - - @util.deprecated( "0.7", "The :meth:`.Connectable.create` method is deprecated and will be " "removed in a future release. Please use the ``.create()`` method " |