]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
column_descriptions or equiv for DML, core select
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 Mar 2022 20:20:34 +0000 (16:20 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 20:50:33 +0000 (20:50 +0000)
commit9a8d95ce05a88c1efb02b52a88ff350d5d751d91
tree80497111ccd0ec2fe55328943b25c24e3922e92a
parentc90396fbe7424c481f8f4ee18b6cedd1fa09c711
column_descriptions or equiv for DML, core select

Added new attributes :attr:`.ValuesBase.returning_column_descriptions` and
:attr:`.ValuesBase.entity_description` to allow for inspection of ORM
attributes and entities that are installed as part of an :class:`.Insert`,
:class:`.Update`, or :class:`.Delete` construct. The
:attr:`.Select.column_descriptions` accessor is also now implemented for
Core-only selectables.

Fixes: #7861
Change-Id: Ia6a1cd24c798ba61f4e8e8eac90a0fd00d738342
doc/build/changelog/unreleased_14/7861.rst [new file with mode: 0644]
doc/build/glossary.rst
doc/build/orm/queryguide.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/selectable.py
test/orm/test_core_compilation.py
test/sql/test_selectable.py