]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add hash to field-like methods
authorFederico Caselli <cfederico87@gmail.com>
Fri, 11 Oct 2024 19:20:15 +0000 (21:20 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Sat, 12 Oct 2024 08:44:18 +0000 (10:44 +0200)
commit7f65d89c8f0bdc87a9a5f5943246d4fdb8315d05
tree0509bfcb44b971fbc12a0385c8bc3542ef0352f7
parenta9c27530952e57e73717f6f236f62ad91b4ed3a4
Add hash to field-like methods

Added the dataclass field ``hash`` parameter to the orm field-like methods,
like :meth:`_orn.mapped_column`, :meth:`_orm.relationship`, etc.

Fixes: #11923
Change-Id: I80220f6dcd9c42f465d8a4c4ae2e4efa45279ecc
(cherry picked from commit c14111b5bb2c624dd0bcb677fc3c9d811b46a2e7)
doc/build/changelog/unreleased_20/11923.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/interfaces.py
test/orm/declarative/test_dc_transforms.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py