]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
expand column options for composites up front at the attribute level
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 May 2025 17:39:36 +0000 (13:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 May 2025 19:07:40 +0000 (15:07 -0400)
commit92a13fe0db614ffa68720e938d3d699b39170faf
treeb6281a90ac4593a4097df1899e38c02e490ef2f6
parent78746059e14b11833fa705249c326a481fe4093e
expand column options for composites up front at the attribute level

Implemented the :func:`_orm.defer`, :func:`_orm.undefer` and
:func:`_orm.load_only` loader options to work for composite attributes, a
use case that had never been supported previously.

Fixes: #12593
Change-Id: Ie7892a710f30b69c83f586f7492174a3b8198f80
(cherry picked from commit b25ce03c8d0d2a9d4f186b9b2b2c82b02b9645b7)
doc/build/changelog/unreleased_20/12593.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_composites.py