summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Schiele <simon.schiele@sony.com>2022-11-30 08:40:50 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-11-30 16:04:24 -0500
commit0042076f5db0cdeceee51b5ce32d76cc54c2af69 (patch)
tree05f816088f68c895d00040d56374bafc0ebd2064 /doc
parentc440c920aecd6593974e5a0d37cdb9069e5d3e57 (diff)
downloadsqlalchemy-0042076f5db0cdeceee51b5ce32d76cc54c2af69.tar.gz
Add "compare" on dataclass fields
Added :paramref:`_orm.mapped_column.compare` parameter to relevant ORM attribute constructs including :func:`_orm.mapped_column`, :func:`_orm.relationship` etc. to provide for the Python dataclasses ``compare`` parameter on ``field()``, when using the :ref:`orm_declarative_native_dataclasses` feature. Pull request courtesy Simon Schiele. Added an additional case for associationproxy into test_dc_transforms.py -> test_attribute_options Fixes: #8905 Closes: #8906 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8906 Pull-request-sha: ea9a53d2ca60befdd0c570013c0e57a78c11dd4a Change-Id: I390d043b06c1d668242325ef86e2f7b7dbfac442
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_20/8905.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_20/8905.rst b/doc/build/changelog/unreleased_20/8905.rst
new file mode 100644
index 000000000..7f88f7fcd
--- /dev/null
+++ b/doc/build/changelog/unreleased_20/8905.rst
@@ -0,0 +1,10 @@
+.. change::
+ :tags: usecase, orm
+ :tickets: 8905
+
+ Added :paramref:`_orm.mapped_column.compare` parameter to relevant ORM
+ attribute constructs including :func:`_orm.mapped_column`,
+ :func:`_orm.relationship` etc. to provide for the Python dataclasses
+ ``compare`` parameter on ``field()``, when using the
+ :ref:`orm_declarative_native_dataclasses` feature. Pull request courtesy
+ Simon Schiele.