Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/__pycache__/ranges.cpython-39.pyc
Ðазад
a _�h � @ s� d dl mZ dZG dd� de�ZG dd� deej�ZG dd� deej�ZG d d � d eej�Z G dd� deej�Z G d d� deej�ZG dd� deej�ZdS )� )�types)� INT4RANGE� INT8RANGE�NUMRANGEc @ s$ e Zd ZdZG dd� dejj�ZdS )�RangeOperatorsaI This mixin provides functionality for the Range Operators listed in Table 9-44 of the `postgres documentation`__ for Range Functions and Operators. It is used by all the range types provided in the ``postgres`` dialect and can likely be used for any range types you create yourself. __ http://www.postgresql.org/docs/devel/static/functions-range.html No extra support is provided for the Range Functions listed in Table 9-45 of the postgres documentation. For these, the normal :func:`~sqlalchemy.sql.expression.func` object should be used. c sp e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� ZeZ dd � Z e Zdd� Zdd� Z dd� Zdd� Z� ZS )z!RangeOperators.comparator_factoryz-Define comparison operations for range types.c s2 |du rt tj| ��|�S | jjddd�|�S dS )z<Boolean expression. Returns true if two ranges are not equalNz<>T�Z is_comparison)�superr �comparator_factory�__ne__�expr�op��self�other�� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/sqlalchemy/dialects/postgresql/ranges.pyr s �z(RangeOperators.comparator_factory.__ne__c K s | j jddd�|�S )z�Boolean expression. Returns true if the right hand operand, which can be an element or a range, is contained within the column. z@>Tr �r r )r r �kwr r r �contains) s z*RangeOperators.comparator_factory.containsc C s | j jddd�|�S )zsBoolean expression. Returns true if the column is contained within the right hand operand. z<@Tr r r r r r �contained_by0 s z.RangeOperators.comparator_factory.contained_byc C s | j jddd�|�S )z�Boolean expression. Returns true if the column overlaps (has points in common with) the right hand operand. z&&Tr r r r r r �overlaps6 s z*RangeOperators.comparator_factory.overlapsc C s | j jddd�|�S )zsBoolean expression. Returns true if the column is strictly left of the right hand operand. z<<Tr r r r r r �strictly_left_of<