$56 GRAYBYTE WORDPRESS FILE MANAGER $49

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/sqlalchemy/engine/__pycache__/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/engine/__pycache__//util.cpython-312.pyc
�

M��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"


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.cpython-312.pyc
2.203 KB
4 Apr 2025 8.03 AM
root / root
0644
_py_processors.cpython-312.pyc
4.374 KB
4 Apr 2025 8.03 AM
root / root
0644
_py_row.cpython-312.pyc
5.613 KB
4 Apr 2025 8.03 AM
root / root
0644
_py_util.cpython-312.pyc
2.109 KB
4 Apr 2025 8.03 AM
root / root
0644
base.cpython-312.pyc
126.9 KB
4 Apr 2025 8.03 AM
root / root
0644
characteristics.cpython-312.pyc
6.663 KB
4 Apr 2025 8.03 AM
root / root
0644
create.cpython-312.pyc
33.503 KB
4 Apr 2025 8.03 AM
root / root
0644
cursor.cpython-312.pyc
77.501 KB
4 Apr 2025 8.03 AM
root / root
0644
default.cpython-312.pyc
86.008 KB
4 Apr 2025 8.03 AM
root / root
0644
events.cpython-312.pyc
38.967 KB
4 Apr 2025 8.03 AM
root / root
0644
interfaces.cpython-312.pyc
97.254 KB
4 Apr 2025 8.03 AM
root / root
0644
mock.cpython-312.pyc
5.539 KB
4 Apr 2025 8.03 AM
root / root
0644
processors.cpython-312.pyc
1.24 KB
4 Apr 2025 8.03 AM
root / root
0644
reflection.cpython-312.pyc
78.403 KB
4 Apr 2025 8.03 AM
root / root
0644
result.cpython-312.pyc
89.066 KB
4 Apr 2025 8.03 AM
root / root
0644
row.cpython-312.pyc
17.01 KB
4 Apr 2025 8.03 AM
root / root
0644
strategies.cpython-312.pyc
0.526 KB
4 Apr 2025 8.03 AM
root / root
0644
url.cpython-312.pyc
33.584 KB
4 Apr 2025 8.03 AM
root / root
0644
util.cpython-312.pyc
6.46 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF