HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sqlparse/__pycache__/__init__.cpython-310.pyc
o

;a��@s�dZddlmZddlmZddlmZddlmZddlmZddlmZdZgd	�Z	ddd�Z
dd
d�Zddd�Zddd�Z
d
S)zParse SQL statements.�)�sql)�cli)�engine)�tokens)�filters)�	formatterz0.4.2)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�3/usr/lib/python3/dist-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


rcCst��}dd�|�||�D�S)z�Split *sql* into single statements.

    :param sql: A string containing one or more SQL statements.
    :param encoding: The encoding of the statement (optional).
    :returns: A list of strings.
    cSsg|]}t|����qSr)�str�strip)�.0�stmtrrr�
<listcomp>Fszsplit.<locals>.<listcomp>)rrr)rr
rrrr�split>sr!)N)�__doc__�sqlparserrrrrr�__version__�__all__r
r	rr!rrrr�<module>s