Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql/__pycache__/ranges.cpython-311.pyc

�

�܋f��"�ddlmZdZGd�de��ZGd�deej��ZGd�deej��ZGd	�d
eej��Z	Gd�deej��Z
Gd
�deej��ZGd�deej��ZdS)�)�types)�	INT4RANGE�	INT8RANGE�NUMRANGEc�B�eZdZdZGd�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�`��eZdZdZ�fd�Zd�Zd�Zd�Zd�ZeZ	d�Z
e
Zd�Zd	�Z
d
�Zd�Z�xZS)�!RangeOperators.comparator_factoryz-Define comparison operations for range types.c���|�-ttj|���|��S|j�dd���|��S)z<Boolean expression. Returns true if two ranges are not equalNz<>T��
is_comparison)�superr�comparator_factory�__ne__�expr�op)�self�other�	__class__s  ��\/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/postgresql/ranges.pyrz(RangeOperators.comparator_factory.__ne__ sT����}��^�>��E�E�L�L�����>�t�y�|�|�D��|�=�=�e�D�D�D�c�L�|j�dd���|��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�rr)rr�kws   r�containsz*RangeOperators.comparator_factory.contains)s&��
:�4�9�<�<��D�<�9�9�%�@�@�@rc�L�|j�dd���|��S)zsBoolean expression. Returns true if the column is contained
            within the right hand operand.
            z<@Trr�rrs  r�contained_byz.RangeOperators.comparator_factory.contained_by0�&��:�4�9�<�<��D�<�9�9�%�@�@�@rc�L�|j�dd���|��S)z�Boolean expression. Returns true if the column overlaps
            (has points in common with) the right hand operand.
            z&&Trrrs  r�overlapsz*RangeOperators.comparator_factory.overlaps6rrc�L�|j�dd���|��S)zsBoolean expression. Returns true if the column is strictly
            left of the right hand operand.
            z<<Trrrs  r�strictly_left_ofz2RangeOperators.comparator_factory.strictly_left_of<rrc�L�|j�dd���|��S)ztBoolean expression. Returns true if the column is strictly
            right of the right hand operand.
            z>>Trrrs  r�strictly_right_ofz3RangeOperators.comparator_factory.strictly_right_ofDrrc�L�|j�dd���|��S)z�Boolean expression. Returns true if the range in the column
            does not extend right of the range in the operand.
            z&<Trrrs  r�not_extend_right_ofz5RangeOperators.comparator_factory.not_extend_right_ofLrrc�L�|j�dd���|��S)z�Boolean expression. Returns true if the range in the column
            does not extend left of the range in the operand.
            z&>Trrrs  r�not_extend_left_ofz4RangeOperators.comparator_factory.not_extend_left_ofRrrc�L�|j�dd���|��S)z}Boolean expression. Returns true if the range in the column
            is adjacent to the range in the operand.
            z-|-Trrrs  r�adjacent_toz-RangeOperators.comparator_factory.adjacent_toXs&��;�4�9�<�<��T�<�:�:�5�A�A�Arc�H�|j�d��|��S)z�Range expression. Returns the union of the two ranges.
            Will raise an exception if the resulting range is not
            contigous.
            �+rrs  r�__add__z)RangeOperators.comparator_factory.__add__^s"��
%�4�9�<�<��$�$�U�+�+�+r)�__name__�
__module__�__qualname__�__doc__rrrr!r#�
__lshift__r%�
__rshift__r'r)r+r.�
__classcell__)rs@rrr
s��������;�;�	E�	E�	E�	E�	E�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A�	A�&�
�	A�	A�	A�'�
�	A�	A�	A�	A�	A�	A�	B�	B�	B�	,�	,�	,�	,�	,�	,�	,rrN)r/r0r1r2�sqltypes�Concatenable�
Comparatorr�rrrr
sX������
�
�F,�F,�F,�F,�F,�X�2�=�F,�F,�F,�F,�F,rrc��eZdZdZdZdS)rz(Represent the PostgreSQL INT4RANGE type.N�r/r0r1r2�__visit_name__r9rrrrf�������2�2� �N�N�Nrrc��eZdZdZdZdS)rz(Represent the PostgreSQL INT8RANGE type.Nr;r9rrrrlr=rrc��eZdZdZdZdS)rz'Represent the PostgreSQL NUMRANGE type.Nr;r9rrrrrs������1�1��N�N�Nrrc��eZdZdZdZdS)�	DATERANGEz(Represent the PostgreSQL DATERANGE type.Nr;r9rrrArAxr=rrAc��eZdZdZdZdS)�TSRANGEz&Represent the PostgreSQL TSRANGE type.Nr;r9rrrCrC~s������0�0��N�N�NrrCc��eZdZdZdZdS)�	TSTZRANGEz(Represent the PostgreSQL TSTZRANGE type.Nr;r9rrrErE�r=rrEN)
�rr6�__all__�objectr�
TypeEnginerrrrArCrEr9rr�<module>rJsw��"�!�!�!�!�!�1��V,�V,�V,�V,�V,�V�V,�V,�V,�r!�!�!�!�!��� 3�!�!�!�!�!�!�!�!��� 3�!�!�!� � � � � �~�x�2� � � �!�!�!�!�!��� 3�!�!�!������n�h�1����!�!�!�!�!��� 3�!�!�!�!�!r

Hacked By AnonymousFox1.0, Coded By AnonymousFox