Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : util.cpython-312.pyc
�

Ȓ�g2��"�ddlmZddlZddlmZddlmZddlmZddlmZddlmZdd	lm	Z	dd
l
mZddlm
Z
ddlmZejses
d
dlmZd
dlmZnddlmZddlmZedegef��Zdd�ZGd�de
�ZGd�d�Zy)�)�annotationsN)�Any)�Callable)�Optional)�TypeVar�)�exc)�util)�HAS_CYEXTENSION)�Protocol)�Self�)�_distill_params_20)�_distill_raw_params�_C)�boundc�8��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�}	|j�S#t$r|||�x|j�<}|cYSwxYw�N)�connect�info�KeyError)�fn�self�
connection�val�keys    ��G/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/engine/util.py�	decoratedz%connection_memoize.<locals>.decorated+sS����'�'�)�
�	��?�?�3�'�'���	�)+�D�*�)=�=�J�O�O�C� �3��J�	�s�"�#A�A)r
�	decorator)rrs` r�connection_memoizer!$s#���
�^�^������c��eZdZUded<y)�
_TConsSubjectzOptional[TransactionalContext]�_trans_context_managerN)�__name__�
__module__�__qualname__�__annotations__�r"rr$r$7s��:�:r"r$c�z�eZdZUdZdZded<dd�Zdd�Zdd�Zdd�Z	dd	�Z
dd
�Zdd�Ze
dd��Zdd
�Zdd�Zy)�TransactionalContextz�Apply Python context manager behavior to transaction objects.

    Performs validation to ensure the subject of the transaction is not
    used if the transaction were ended prematurely.

    )�_outer_trans_ctx�_trans_subject�__weakref__zOptional[_TConsSubject]r.c��t��r��NotImplementedError�rs r�_transaction_is_activez+TransactionalContext._transaction_is_activeG���!�#�#r"c��t��rr1r3s r�_transaction_is_closedz+TransactionalContext._transaction_is_closedJr5r"c��t��)aindicates the object is in a state that is known to be acceptable
        for rollback() to be called.

        This does not necessarily mean rollback() will succeed or not raise
        an error, just that there is currently no state detected that indicates
        rollback() would fail or emit warnings.

        It also does not mean that there's a transaction in progress, as
        it is usually safe to call rollback() even if no transaction is
        present.

        .. versionadded:: 1.4.28

        r1r3s r�_rollback_can_be_calledz,TransactionalContext._rollback_can_be_calledMs
��"�#�#r"c��t��rr1r3s r�_get_subjectz!TransactionalContext._get_subject^r5r"c��t��rr1r3s r�commitzTransactionalContext.commitar5r"c��t��rr1r3s r�rollbackzTransactionalContext.rollbackdr5r"c��t��rr1r3s r�closezTransactionalContext.closegr5r"c�l�|j}|r&|j�stjd��yy)Nz�Can't operate on closed transaction inside context manager.  Please complete the context manager before emitting further commands.)r%r4r	�InvalidRequestError)�cls�subject�
trans_contexts   r�_trans_ctx_checkz%TransactionalContext._trans_ctx_checkjs>���6�6�
�� �7�7�9��-�-�8���:�r"c�h�|j�}|j}||_||_||_|Sr)r;r%r-r.)rrErFs   r�	__enter__zTransactionalContext.__enter__us:���#�#�%�� �6�6�
� -���%���)-��&��r"c��t|dd�}|duxs|j|u}|�G|j�r7	|j�|s|�J�|j|_dx|_	|_y	|j�s!|j�s1|j�n |j
�r|j�|s|�J�|j|_dx|_	|_y#t	j
�5|j
�r|j�ddd�n#1swYnxYwY��xYw#|s|�J�|j|_dx|_	|_wxYw#|s|�J�|j|_dx|_	|_wxYw)Nr.)�getattrr%r4r=r
�safe_reraiser9r?r-r.r7rA)r�type_�value�	tracebackrE�out_of_band_exits      r�__exit__zTransactionalContext.__exit__�s|���$� 0�$�7��
�t�O�I�w�=�=�T�I�	��=�T�8�8�:�

C����
�(�"�.�.�.�59�5J�5J�G�2�>B�B��#�d�&;�
C��2�2�4��6�6�8��
�
���3�3�5��
�
��'�"�.�.�.�59�5J�5J�G�2�>B�B��#�d�&;��+
(��&�&�(��3�3�5��
�
��)�(�(���(�"�.�.�.�59�5J�5J�G�2�>B�B��#�d�&;��(�"�.�.�.�59�5J�5J�G�2�>B�B��#�d�&;�s<�C#�,AE�#D1�9!D#�	D1�#D,	�(D1�/D4�4'E�'FN)�return�bool)rRr$)rR�None)rEr$rRrT)rRr
)rMrrNrrOrrRrT)r&r'r(�__doc__�	__slots__r)r4r7r9r;r=r?rA�classmethodrGrIrQr*r"rr,r,;sW���F�I�+�+�$�$�$�"$�$�$�$�����
�&Cr"r,)r�strrRzCallable[[_C], _C])�
__future__r�typingrrrr�r	r
�util._has_cyr�util.typingrr
�
TYPE_CHECKING�_py_utilrr�sqlalchemy.cyextension.utilrr!r$r,r*r"r�<module>rasy��#�
�������*�"��	����B�D���
�T��"�c�'�*�+���&;�H�;�lC�lCr"
© 2025 XylotrechusZ