Hacked By AnonymousFox

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

�

�܋fu	���ddlmZd�Zd�Z	ddlmZdS#e$r)e���e����YdSwxYw)�)�utilc�6��tj�fd���}|S)z�Decorator, memoize a function in a connection.info stash.

    Only applicable to functions which take no arguments other than a
    connection.  The memo will be stored in ``connection.info[key]``.
    c���|���}	|j�S#t$r|||��x|j�<}|cYSwxYw)N)�connect�info�KeyError)�fn�self�
connection�val�keys    ��M/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/engine/util.py�	decoratedz%connection_memoize.<locals>.decoratedsg����'�'�)�)�
�	��?�3�'�'���	�	�	�)+��D�*�)=�)=�=�J�O�C� �3��J�J�J�	���s�$�"A	�A	)r�	decorator)r
rs` r�connection_memoizers2���
�^������^����c�$�d�}t��S)Nc�x�|s|r|gSgSt|��dkrn|d}t|ttf��r3|r,t	|dd��rt	|dd��s|S|gSt	|d��r|gS|ggSt	|dd��rt	|dd��s|S|gS)aGiven arguments from the calling form \*multiparams, \**params,
        return a list of bind parameter structures, usually a list of
        dictionaries.

        In the case of 'raw' execution which accepts positional parameters,
        it may be a list of tuples or lists.

        ���__iter__�strip�keys)�len�
isinstance�list�tuple�hasattr)�multiparams�params�zeros   r�_distill_paramsz$py_fallback.<locals>._distill_paramss����	%��
��x���	�
��
�
��
"�
"��q�>�D��$��u�
�.�.�
 ��
"��t�A�w�
�3�3�
"�$�D��G�W�5�5�
"� �K�!�6�M���v�&�&�
 ��v�
���x���{�1�~�z�2�2�
%�7��A���<�<�
%�#�"�#�}�$r)�locals�r"s r�py_fallbackr%s��)%�)%�)%�V�8�8�Orrr$N)	�rrr%�sqlalchemy.cutilsr"�ImportError�globals�update�rr�<module>r,s������������&,�,�,�^$�1�1�1�1�1�1�1�1���$�$�$��G�I�I���[�[�]�]�#�#�#�#�#�#�$���s��*A�A

Hacked By AnonymousFox1.0, Coded By AnonymousFox