diff options
author | Lele Gaifax <lele@metapensiero.it> | 2022-11-02 08:33:41 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-03 09:30:38 -0400 |
commit | e8124b29b07fd17ab2f2b6892534dcc4b0797ab4 (patch) | |
tree | 5e8436a3f457b6bc2b7fb53c659afd92f209bc47 /lib/sqlalchemy/dialects/postgresql/__init__.py | |
parent | 66f3533de86506327c753c1ea80b121692535745 (diff) | |
download | sqlalchemy-e8124b29b07fd17ab2f2b6892534dcc4b0797ab4.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/__init__.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/__init__.py b/lib/sqlalchemy/dialects/postgresql/__init__.py index 8dbee1f7f..7890541ff 100644 --- a/lib/sqlalchemy/dialects/postgresql/__init__.py +++ b/lib/sqlalchemy/dialects/postgresql/__init__.py @@ -48,6 +48,8 @@ from .named_types import DropDomainType from .named_types import DropEnumType from .named_types import ENUM from .named_types import NamedType +from .ranges import AbstractMultiRange +from .ranges import AbstractRange from .ranges import DATEMULTIRANGE from .ranges import DATERANGE from .ranges import INT4MULTIRANGE |