]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rename Table.tometadata to to_metadata
authorGord Thompson <gord@gordthompson.com>
Sat, 27 Jun 2020 14:53:23 +0000 (08:53 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jun 2020 17:56:21 +0000 (13:56 -0400)
commit2c1e517d0368934b70a571163ff56638673cc96b
treefb4e65ab5372cf2e89984ccd1590fc43f27c99c4
parent5f5b56d646f154ee572c9de80449423304103bad
Rename Table.tometadata to to_metadata

Renamed the :meth:`_schema.Table.tometadata` method to
:meth:`_schema.Table.to_metadata`.  The previous name remains with a
deprecation warning.

Updated the "decorate" utility function to support decoration
of functions that include non-builtins as default values.

Moves test for deprecated "databases" package into
test/dialect/test_deprecations.py

Fixes: #5413
Fixes: #5426
Change-Id: I6ed899871c935f9e46360127c17ccb7cf97cea6e
13 files changed:
doc/build/changelog/unreleased_14/5413.rst [new file with mode: 0644]
doc/build/conf.py
lib/sqlalchemy/sql/events.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/util/langhelpers.py
test/dialect/postgresql/test_compiler.py
test/dialect/test_deprecations.py [moved from test/test_deprecations.py with 61% similarity]
test/orm/test_bind.py
test/sql/test_compiler.py
test/sql/test_computed.py
test/sql/test_deprecations.py
test/sql/test_metadata.py