Server IP : 66.29.132.122 / Your IP : 3.145.172.56 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/dialects/postgresql/ |
Upload File : |
# dialects/postgresql/operators.py # Copyright (C) 2005-2024 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: ignore-errors from ...sql import operators _getitem_precedence = operators._PRECEDENCE[operators.json_getitem_op] _eq_precedence = operators._PRECEDENCE[operators.eq] # JSON + JSONB ASTEXT = operators.custom_op( "->>", precedence=_getitem_precedence, natural_self_precedent=True, eager_grouping=True, ) JSONPATH_ASTEXT = operators.custom_op( "#>>", precedence=_getitem_precedence, natural_self_precedent=True, eager_grouping=True, ) # JSONB + HSTORE HAS_KEY = operators.custom_op( "?", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) HAS_ALL = operators.custom_op( "?&", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) HAS_ANY = operators.custom_op( "?|", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) # JSONB DELETE_PATH = operators.custom_op( "#-", precedence=_getitem_precedence, natural_self_precedent=True, eager_grouping=True, ) PATH_EXISTS = operators.custom_op( "@?", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) PATH_MATCH = operators.custom_op( "@@", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) # JSONB + ARRAY + HSTORE + RANGE CONTAINS = operators.custom_op( "@>", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) CONTAINED_BY = operators.custom_op( "<@", precedence=_eq_precedence, natural_self_precedent=True, eager_grouping=True, is_comparison=True, ) # ARRAY + RANGE OVERLAP = operators.custom_op( "&&", precedence=_eq_precedence, is_comparison=True, ) # RANGE STRICTLY_LEFT_OF = operators.custom_op( "<<", precedence=_eq_precedence, is_comparison=True ) STRICTLY_RIGHT_OF = operators.custom_op( ">>", precedence=_eq_precedence, is_comparison=True ) NOT_EXTEND_RIGHT_OF = operators.custom_op( "&<", precedence=_eq_precedence, is_comparison=True ) NOT_EXTEND_LEFT_OF = operators.custom_op( "&>", precedence=_eq_precedence, is_comparison=True ) ADJACENT_TO = operators.custom_op( "-|-", precedence=_eq_precedence, is_comparison=True ) # HSTORE GETITEM = operators.custom_op( "->", precedence=_getitem_precedence, natural_self_precedent=True, eager_grouping=True, )