$53 GRAYBYTE WORDPRESS FILE MANAGER $47

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__//mock.cpython-312.pyc
�

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


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