ó
    ych	  ã                   ó„   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  Sr/ S	Qr	SS jr
SS jrSS jrSS jrg
)zParse SQL statements.é    )Úsql)Úcli)Úengine)Útokens)Úfilters)Ú	formatterz0.5.3)r   r   r   r   r   r   Nc                 ó*   • [        [        X5      5      $ )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   Úencodings     ÚZ/var/www/djangovue.mamus.xyz/django/venv/lib/python3.13/site-packages/sqlparse/__init__.pyÚparser      s   € ô ”˜SÓ+Ó,Ð,ó    c                 ón   • [         R                  " 5       nUR                  5         UR                  X5      $ )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   Ústacks      r   r   r   !   s-   € ô ×ÒÓ €EØ	×ÑÔØ�9‰9�VÓ&Ð&r   c                 ó   • [         R                  " 5       n[        R                  " U5      n[        R                  " X25      nUR
                  R                  [        R                  " 5       5        SR                  UR                  X5      5      $ )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.
Ú )r   r   r   Úvalidate_optionsÚbuild_filter_stackÚpostprocessÚappendr   ÚSerializerUnicodeÚjoinr   )r   r   Úoptionsr   s       r   Úformatr   -   sg   € ô ×ÒÓ €EÜ×(Ò(¨Ó1€GÜ×(Ò(¨Ó8€EØ	×Ñ×ÑœW×6Ò6Ó8Ô9Ø�7‰7�5—9‘9˜SÓ+Ó,Ð,r   c                 ó¦   • [         R                  " US9nUR                  X5       Vs/ s H  n[        U5      R	                  5       PM     sn$ s  snf )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_semicolon)r   r   r   ÚstrÚstrip)r   r   r!   r   Ústmts        r   Úsplitr%   >   sB   € ô ×Ò¨Ñ?€EØ*/¯)©)°CÔ*BÓCÒ*B $ŒC�‹I�O‰OÖÑ*BÑCÐCùÒCs   ¨#A)N)NF)Ú__doc__Úsqlparser   r   r   r   r   r   Ú__version__Ú__all__r   r   r   r%   © r   r   Ú<module>r+      s?   ðñ õ Ý Ý Ý Ý Ý ð €Ú
D€ô-ô	'ô-õ"
Dr   