]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement contains_value(), issubset() and issuperset() on PG Range
authorLele Gaifax <lele@metapensiero.it>
Wed, 2 Nov 2022 12:33:41 +0000 (08:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Nov 2022 13:30:38 +0000 (09:30 -0400)
commite8124b29b07fd17ab2f2b6892534dcc4b0797ab4
tree5e8436a3f457b6bc2b7fb53c659afd92f209bc47
parent66f3533de86506327c753c1ea80b121692535745
Implement contains_value(), issubset() and issuperset() on PG Range

Added new methods :meth:`_postgresql.Range.contains` and
:meth:`_postgresql.Range.contained_by` to the new :class:`.Range` data
object, which mirror the behavior of the PostgreSQL ``@>`` and ``<@``
operators, as well as the
:meth:`_postgresql.AbstractRange.comparator_factory.contains` and
:meth:`_postgresql.AbstractRange.comparator_factory.contained_by` SQL
operator methods. Pull request courtesy Lele Gaifax.

Fixes: #8706
Closes: #8707
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8707
Pull-request-sha: 3a74a0d93e63032ebee02992977498c717a077ff

Change-Id: Ief81ca5c31448640b26dfbc3defd4dde1d51e366
doc/build/changelog/unreleased_20/8706.rst [new file with mode: 0644]
doc/build/changelog/whatsnew_20.rst
doc/build/dialects/postgresql.rst
lib/sqlalchemy/dialects/postgresql/__init__.py
lib/sqlalchemy/dialects/postgresql/ranges.py
test/dialect/postgresql/test_types.py