From c76e3776f52d0d69c8c4932ba53626d7190cf5f4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 12 Oct 2020 13:16:14 -0400 Subject: 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 --- lib/sqlalchemy/testing/warnings.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/sqlalchemy/testing/warnings.py') 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", -- cgit v1.2.1