]> 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:51:01 +0000 (16:51 -0400)
commitf4654ed33375e50254bd4f17f94c38be8df5d02a
tree2dc65d08c4dcfe5ed98c960d137b9fcdeda49902
parent32cac8f9ff223acfaea4f33798ebcb658382d145
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
(cherry picked from commit 2f1df5f9105149d6cb01c8b6ab6b9ccffa020780)
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