]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Improve support for enum in mapped classes
authorFederico Caselli <cfederico87@gmail.com>
Sun, 27 Nov 2022 17:11:34 +0000 (18:11 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Nov 2022 22:49:27 +0000 (17:49 -0500)
commit9c9fd31bcea3beaed6d14fde639e65f6b43bea09
tree2eef4b31c1f89f364c9bf15fdf153a4aad0f98c6
parent78833af4e650d37e6257cfbb541e4db56e2a285f
Improve support for enum in mapped classes

Add a new system by which TypeEngine objects have some
say in how the declarative type registry interprets them.
The Enum datatype is the primary target for this but it is
hoped the system may be useful for other types as well.

Fixes: #8859
Change-Id: I15ac3daee770408b5795746f47c1bbd931b7d26d
doc/build/changelog/unreleased_20/8859.rst [new file with mode: 0644]
doc/build/orm/declarative_tables.rst
lib/sqlalchemy/orm/decl_api.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/util/typing.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py