HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib/python3.10/site-packages/sqlparse/__pycache__/__init__.cpython-310.pyc
o

��h	�@s�dZddlmZddlmZddlmZddlmZddlmZddlmZdZgd	�Z	ddd�Z
dd
d�Zddd�Zddd�Z
d
S)zParse SQL statements.�)�sql)�cli)�engine)�tokens)�filters)�	formatterz0.5.1)rrrrrrNcCstt||��S)z�Parse sql and return a list of statements.

    :param sql: A string containing one or more SQL statements.
    :param encoding: The encoding of the statement (optional).
    :returns: A tuple of :class:`~sqlparse.sql.Statement` instances.
    )�tuple�parsestream)r�encoding�r�G/usr/local/CyberPanel/lib/python3.10/site-packages/sqlparse/__init__.py�parsesr
cCst��}|��|�||�S)z�Parses sql statements from file-like object.

    :param stream: A file-like object.
    :param encoding: The encoding of the stream contents (optional).
    :returns: A generator of :class:`~sqlparse.sql.Statement` instances.
    )r�FilterStack�enable_grouping�run)�streamr
�stackrrrr	!sr	cKs@t��}t�|�}t�||�}|j�t���d�	|�
||��S)a'Format *sql* according to *options*.

    Available options are documented in :ref:`formatting`.

    In addition to the formatting options this function accepts the
    keyword "encoding" which determines the encoding of the statement.

    :returns: The formatted SQL statement as string.
    �)rrr�validate_options�build_filter_stack�postprocess�appendr�SerializerUnicode�joinr)rr
�optionsrrrr�format-s


rFcCs"tj|d�}dd�|�||�D�S)a$Split *sql* into single statements.

    :param sql: A string containing one or more SQL statements.
    :param encoding: The encoding of the statement (optional).
    :param strip_semicolon: If True, remove trainling semicolons
        (default: False).
    :returns: A list of strings.
    )�strip_semicoloncSsg|]}t|����qSr)�str�strip)�.0�stmtrrr�
<listcomp>Hszsplit.<locals>.<listcomp>)rrr)rr
rrrrr�split>s	r")N)NF)�__doc__�sqlparserrrrrr�__version__�__all__r
r	rr"rrrr�<module>s