]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add ``dataclass_metadata`` parameter to orm cols
authorSigmund Lahn <s@lahn.no>
Thu, 3 Jul 2025 16:14:13 +0000 (12:14 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Sun, 20 Jul 2025 09:09:42 +0000 (11:09 +0200)
commitacf6cecd180d874c8f720ed601e0eddb6ad73aff
treee206e588c5226c3edc8f08074c7d773f09919e82
parentc80ac3fbbb314550a5501cc779847805c68276ef
Add ``dataclass_metadata`` parameter to orm cols

Added ``dataclass_metadata`` argument to a all column functions
used in the ORM that accept dataclasses parameters.
It's passed to the underlying dataclass ``metadata`` attribute
of the dataclass field.
Pull request courtesy Sigmund Lahn.

Fixes: #10674
Closes: #12619
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12619
Pull-request-sha: 9ea6a95b2bc6816e5b69d6d559783a6009877838

Change-Id: I4551c24b85cebee4064df6ab752d0700f0f191f1
(cherry picked from commit aeb7830d22cdb4ac387242d46833cb2f67e0a952)
doc/build/changelog/unreleased_20/10674.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/decl_base.py
lib/sqlalchemy/orm/interfaces.py
test/orm/declarative/test_dc_transforms.py
test/orm/declarative/test_dc_transforms_future_anno_sync.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py