]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add CRUD column marker
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Apr 2025 14:36:28 +0000 (10:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Jul 2025 16:11:45 +0000 (12:11 -0400)
commit89b81ec8c45fae34214657cf46bbc9df158a676a
tree463c104edee560eb0243c233178fa09b0206c10a
parentb668fad821c08fd9b8420072ec8241e9cb5074a1
add CRUD column marker

Added new Core feature :func:`_sql.from_dml_column` that may be used in
expressions inside of :meth:`.UpdateBase.values` for INSERT or UPDATE; this
construct will copy whatever SQL expression is used for the given target
column in the statement to be used with additional columns. The construct
is mostly intended to be a helper with ORM :class:`.hybrid_property` within
DML hooks.

This is the Core side of the feature being added to the ORM
for #12496

Change-Id: Ic568638a8ce3607deea44af988b6451b30cde36c
13 files changed:
doc/build/changelog/unreleased_21/12496.rst [new file with mode: 0644]
doc/build/core/sqlelement.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/sql/__init__.py
lib/sqlalchemy/sql/_elements_constructors.py
lib/sqlalchemy/sql/_typing.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
test/sql/test_compare.py
test/sql/test_insert.py
test/sql/test_update.py