. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 162.0.212.4  /  Your IP : 216.73.216.221   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : alshnoli ( 2431)
PHP Version : 8.3.28
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/engine/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

���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$

Anon7 - 2022
AnonSec Team