__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.217.0: ~ $
�

_��gU��@�ddlmZddlmZddlZddlmZddlmZddlmZddlmZddlm	Z	dd	lm
Z
d
dlmZ
dd
lmZejr<d
dlmZd
dlmZd
dlmZd
dlmZd
dlmZddlmZddlmZddlmZddlmZddlmZGd�d�Z								dd�Z y)�)�annotations)�
attrgetterN)�Any)�Callable)�cast)�Optional)�Type)�Union�)�url�)�util)�Engine)�_CoreAnyExecuteParams)�CoreExecuteOptionsParameter)�Dialect)�URL)�
Executable)�
SchemaDropper)�SchemaGenerator)�
HasSchemaAttr)�
SchemaItemc���eZdZUdd�Zeeed���Zded<eeee	d���Z
ded<eeed���Zd	ed
<dd�Zdd�Z
dd
�Z								dd�Z		d							dd�Zy)�MockConnection�dialectrc� �||_||_y�N)�_dialect�
_execute_impl)�selfr�executes   �G/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/engine/mock.py�__init__zMockConnection.__init__%s����
�$���c��|Sr���ss r"�<lambda>zMockConnection.<lambda>)s��!r$r�enginerc�.�|jjSr)r�namer's r"r)zMockConnection.<lambda>+s��Q�Z�Z�_�_r$�strr,c��|Srr&)r �kwargss  r"�connectzMockConnection.connect-����r$c��|jSr)�schema)r �objs  r"�schema_for_objectz MockConnection.schema_for_object0s���z�z�r$c��|Srr&)r �kws  r"�execution_optionsz MockConnection.execution_options3r1r$c�T�d|d<||j|fi|��j|�y)NF�
checkfirst)r�traverse_single)r �visitorcallable�elementr/s    r"�_run_ddl_visitorzMockConnection._run_ddl_visitor6s,�� %��|������d�5�f�5�E�E�g�Nr$Nc�&�|j||�Sr)r)r r4�
parametersr8s    r"r!zMockConnection.execute?s���!�!�#�z�2�2r$)rrr!zCallable[..., Any])r/r�returnr)r4rrAz
Optional[str])r7rrAr)r<z+Type[Union[SchemaGenerator, SchemaDropper]]r=rr/rrA�None)NN)r4rr@zOptional[_CoreAnyExecuteParams]r8z%Optional[CoreExecuteOptionsParameter]rAr)�__name__�
__module__�__qualname__r#rr�propertyr*�__annotations__rrr,r0r5r8r>r!r&r$r"rr$s���%��#�x��4�5�F�F�5��C��*�Z�*@�!A�B�G�W�B��S�(�#<�=�>�D�#�>����O�D�O��O��	O�

�O�7;�CG�	3�
�3�4�3�A�	3�


�3r$rc���tj|�}|j�}i}tj|�D]}||vs�|j|�||<�|di|��}t
||�S)a?Create a "mock" engine used for echoing DDL.

    This is a utility function used for debugging or storing the output of DDL
    sequences as generated by :meth:`_schema.MetaData.create_all`
    and related methods.

    The function accepts a URL which is used only to determine the kind of
    dialect to be used, as well as an "executor" callable function which
    will receive a SQL expression object and parameters, which can then be
    echoed or otherwise printed.   The executor's return value is not handled,
    nor does the engine allow regular string statements to be invoked, and
    is therefore only useful for DDL that is sent to the database without
    receiving any results.

    E.g.::

        from sqlalchemy import create_mock_engine


        def dump(sql, *multiparams, **params):
            print(sql.compile(dialect=engine.dialect))


        engine = create_mock_engine("postgresql+psycopg2://", dump)
        metadata.create_all(engine, checkfirst=False)

    :param url: A string URL which typically needs to contain only the
     database backend name.

    :param executor: a callable which receives the arguments ``sql``,
     ``*multiparams`` and ``**params``.  The ``sql`` parameter is typically
     an instance of :class:`.ExecutableDDLElement`, which can then be compiled
     into a string using :meth:`.ExecutableDDLElement.compile`.

    .. versionadded:: 1.4 - the :func:`.create_mock_engine` function replaces
       the previous "mock" engine strategy used with
       :func:`_sa.create_engine`.

    .. seealso::

        :ref:`faq_ddl_as_string`

    r&)�_url�make_url�get_dialectr�get_cls_kwargs�popr)r�executorr7�u�dialect_cls�dialect_args�krs        r"�create_mock_enginerSHsl��`	
�
�
�c��A��-�-�/�K��L�
�
 �
 ��
-����7� �f�f�Q�i�L��O�.�
�)�L�)�G��'�8�,�,r$)rzUnion[str, URL]rNrr7rrAr)!�
__future__r�operatorr�typingrrrrr	r
�rrIr�
TYPE_CHECKING�baser�
interfacesrrrr�sql.baser�sql.ddlrr�
sql.schemarrrrSr&r$r"�<module>r^s���#��
���������
����1�7�#��%�'�)�*�'�!3�!3�H=-�	�=-�$'�=-�/2�=-��=-r$

Filemanager

Name Type Size Permission Actions
__init__.cpython-312.pyc File 2.2 KB 0644
_py_processors.cpython-312.pyc File 4.37 KB 0644
_py_row.cpython-312.pyc File 5.61 KB 0644
_py_util.cpython-312.pyc File 2.11 KB 0644
base.cpython-312.pyc File 126.9 KB 0644
characteristics.cpython-312.pyc File 6.66 KB 0644
create.cpython-312.pyc File 33.5 KB 0644
cursor.cpython-312.pyc File 77.5 KB 0644
default.cpython-312.pyc File 86.01 KB 0644
events.cpython-312.pyc File 38.97 KB 0644
interfaces.cpython-312.pyc File 97.25 KB 0644
mock.cpython-312.pyc File 5.54 KB 0644
processors.cpython-312.pyc File 1.24 KB 0644
reflection.cpython-312.pyc File 78.4 KB 0644
result.cpython-312.pyc File 89.07 KB 0644
row.cpython-312.pyc File 17.01 KB 0644
strategies.cpython-312.pyc File 539 B 0644
url.cpython-312.pyc File 33.58 KB 0644
util.cpython-312.pyc File 6.46 KB 0644