summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/warnings.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-10-12 13:16:14 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-10-12 13:57:43 -0400
commitc76e3776f52d0d69c8c4932ba53626d7190cf5f4 (patch)
tree224282cf4390f136228a932a40dbb504824b273b /lib/sqlalchemy/testing/warnings.py
parent286fe9b0b165e46099066cc16552b93a0b853a7e (diff)
downloadsqlalchemy-c76e3776f52d0d69c8c4932ba53626d7190cf5f4.tar.gz
Deprecate bound metadata
The :paramref:`_schema.MetaData.bind` argument as well as the overall concept of "bound metadata" is deprecated in SQLAlchemy 1.4 and will be removed in SQLAlchemy 2.0. The parameter as well as related functions now emit a :class:`_exc.RemovedIn20Warning` when :ref:`deprecation_20_mode` is in use. Added new parameter :paramref:`_automap.AutomapBase.prepare.autoload_with` which supersedes :paramref:`_automap.AutomapBase.prepare.reflect` and :paramref:`_automap.AutomapBase.prepare.engine`. Fixes: #4634 Fixes: #5142 Change-Id: Iaabf9b481931e2fb68b97b5954c32e65772a298e
Diffstat (limited to 'lib/sqlalchemy/testing/warnings.py')
-rw-r--r--lib/sqlalchemy/testing/warnings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py
index 5704cf2a6..bfa09d00a 100644
--- a/lib/sqlalchemy/testing/warnings.py
+++ b/lib/sqlalchemy/testing/warnings.py
@@ -60,6 +60,12 @@ def setup_filters():
r".*DefaultGenerator.execute\(\)",
r"The autoload parameter is deprecated and will be removed ",
#
+ #
+ # bound metadaa
+ #
+ r"The MetaData.bind argument is deprecated",
+ r"The ``bind`` argument for schema methods that invoke SQL ",
+ #
# result sets
#
r"The Row.keys\(\) function/method",