]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deprecate connection branching
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Feb 2020 18:24:40 +0000 (13:24 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 21 Feb 2020 21:26:57 +0000 (16:26 -0500)
commit93b7767d00267ebe149cabcae7246b6796352eb8
tree021f4960fccf4d6cc3cce17e680bdd6e8823d5c9
parent1e126829d594aa9f525c41942b2729bae9378fcd
Deprecate connection branching

The :meth:`.Connection.connect` method is deprecated as is the concept of
"connection branching", which copies a :class:`.Connection` into a new one
that has a no-op ".close()" method.  This pattern is oriented around the
"connectionless execution" concept which is also being removed in 2.0.

As part of this change we begin to move the internals away from
"connectionless execution" overall.   Remove the "connectionless
execution" concept from the reflection internals and replace with
explicit patterns at the Inspector level.

Fixes: #5131
Change-Id: Id23d28a9889212ac5ae7329b85136157815d3e6f
21 files changed:
doc/build/changelog/unreleased_14/5131.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/suite/test_reflection.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/deprecations.py
test/dialect/mssql/test_reflection.py
test/dialect/postgresql/test_reflection.py
test/dialect/test_sqlite.py
test/engine/test_bind.py
test/engine/test_deprecations.py
test/engine/test_execute.py
test/engine/test_reflection.py
test/sql/test_defaults.py
test/sql/test_deprecations.py