]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support inspection of computed column
authorFederico Caselli <cfederico87@gmail.com>
Sat, 14 Mar 2020 12:57:42 +0000 (13:57 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Mar 2020 13:46:03 +0000 (09:46 -0400)
commit5d963ae62074e692e9aa6bb0c556d6471334b867
tree8071d54b0d4ac8824fb9dafa1447844f3a51a7de
parentd5956e3f335a700e3ff4b56db4d2387c69797a25
Support inspection of computed column

Added support for reflection of "computed" columns, which are now returned
as part of the structure returned by :meth:`.Inspector.get_columns`.
When reflecting full :class:`.Table` objects, computed columns will
be represented using the :class:`.Computed` construct.

Also improve the documentation in :meth:`Inspector.get_columns`, correctly
listing all the returned keys.

Fixes: #5063
Fixes: #4051
Closes: #5064
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5064
Pull-request-sha: ba00fc321ce468f8885aad23b3dd33c789e50fbe

Change-Id: I789986554fc8ac7f084270474d0b2c12046b1cc2
(cherry picked from commit 62b7dace0c1d03acf3224085d03a03684a969031)
16 files changed:
README.unittests.rst
doc/build/changelog/unreleased_13/5063.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mssql/information_schema.py
lib/sqlalchemy/dialects/mysql/reflection.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_reflection.py
test/engine/test_reflection.py
test/requirements.py