+
    öÙ†jÀ  ã                   ó¨   € R t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt RR lt	 ! R R]4      t
R t]R	8X  d   ]! ]P                  R
,          4       R# R# )zÞA simple SQLite CLI for the sqlite3 module.

Apart from using 'argparse' for the command-line interface,
this module implements the REPL as a thin wrapper around
the InteractiveConsole class from the 'code' stdlib module.
N)ÚArgumentParser)ÚInteractiveConsole)Údedentc                óÆ  €  V P                  V4       F  p\        V4       K  	  R#   \        P                   d¥   p\	        T4      P
                  p \        T RTP                   RT 2\        P                  R7       M1  \         d$    \        T RT 2\        P                  R7        Mi ; iT'       g   \        P                  ! ^4        Rp?R#  Rp?R# Rp?ii ; i)z¸Helper that wraps execution of SQL code.

This is used both by the REPL and by direct execution from the CLI.

'c' may be a cursor or a connection.
'sql' is the SQL string to execute.
z (z): )Úfilez: N)ÚexecuteÚprintÚsqlite3ÚErrorÚtypeÚ__name__Úsqlite_errornameÚsysÚstderrÚAttributeErrorÚexit)ÚcÚsqlÚsuppress_errorsÚrowÚeÚtps   &&&   Ú'/usr/lib/python3.14/sqlite3/__main__.pyr   r      sª   € ð
Ø—9‘9˜S–>ˆCÜ�#ŽJó "øä�=‰=ô Ü�!‹W×Ñˆð	1Ü�R�D˜˜1×-Ñ-Ð.¨c°!°Ð5¼C¿J¹JÖGøÜô 	1Ü�R�D˜˜1˜#�,¤S§Z¡Z×0ð	1úçÜ�HŠH�Q�KŠKõ ûðús>   ‚#' §C ¼CÁ-B Á?CÂ +B.Â+CÂ-B.Â.
CÂ9CÃC c                   ó@   a a€ ] tR t^%t oRtV 3R ltRR ltRtVtV ;t	# )ÚSqliteInteractiveConsolezA simple SQLite REPL.c                óZ   <€ \         SV `  4        Wn        VP                  4       V n        R # )N)ÚsuperÚ__init__Ú_conÚcursorÚ_cur)ÚselfÚ
connectionÚ	__class__s   &&€r   r   Ú!SqliteInteractiveConsole.__init__(   s#   ø€ Ü‰ÑÔØŒ	Ø×%Ñ%Ó'ˆŽ	ó    c                óî  € V'       d   VP                  4       '       d   R# V^ ,          R8X  d“   VR,          P                  4       ;R8X  d    \        \        P                   4       R# ;R8X  d    \        R4       R# ;R8X  d    \
        P                  ! ^ 4       R# ;R8X  d     R# pV P                  R	V R
24       R# \        P                  ! V4      '       g   R# \        V P                  V4       R# )zÇOverride runsource, the core of the InteractiveConsole REPL.

Return True if more input is needed; buffering is done automatically.
Return False if input is a complete statement ready for execution.
FÚ.ºé   NNÚversionÚhelpzEnter SQL code and press enter.ÚquitÚ z/Error: unknown command or invalid arguments:  "z".
T)ÚisspaceÚstripr   r	   Úsqlite_versionr   r   ÚwriteÚcomplete_statementr   r    )r!   ÚsourceÚfilenameÚsymbolÚunknowns   &&&& r   Ú	runsourceÚ"SqliteInteractiveConsole.runsource-   sÎ   € ÷ ˜Ÿ™×)Ò)ÙØ�!�9˜ÔØ˜•*×"Ñ"Ó$ÞÝœW×3Ñ3Ð4Ô6ñ ö ÝÐ;Ô<ñ ö Ý—H’H˜Q”Kñ ö Ùñ ð "Ø—J‘Jð  %Ø%, I¨Tð 3ô 4ñ ô ×-Ò-¨f×5Ò5ÙÜ�D—I‘I˜vÔ&Ùr%   )r   r    )z<input>Úsingle)
r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r7   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r#   Ú__classdict__s   @@r   r   r   %   s   ù‡ € Ùõ(÷
ô r%   r   c            	      óª  € \        R RR7      pVP                  R\        RRRR7       VP                  R\        RR	R
7       VP                  RRRR\        P                   2RR7       VP
                  ! V !  p V P                  R8X  d   RpM\        V P                  4      p\        P                  R8X  d   R\        P                  9  d   RpMRp\        R\        P                   RV RV R24      P                  4       pR\        n        R\        n        \        P                  ! V P                  RR7      p V P                   '       d   \#        WPP                   RR7       M#\%        V4      p ^ RIpVP+                  VR R!7       VP-                  4        \        P.                  ! ^ 4       R#   \(         d     LHi ; i  TP-                  4        i ; i)"zPython sqlite3 CLIT)ÚdescriptionÚcolorr4   z:memory:Ú?zrSQLite database to open (defaults to ':memory:'). A new database is created if the file does not previously exist.)r   ÚdefaultÚnargsr+   r   zAAn SQL query to execute. Any returned rows are printed to stdout.)r   rG   r+   z-vz	--versionr*   zSQLite version z'Print underlying SQLite library version)Úactionr*   r+   za transient in-memory databaseÚwin32zidlelib.runzCTRL-ZzCTRL-Dz2
        sqlite3 shell, running on SQLite version z
        Connected to z}

        Each command will be run using execute() on the cursor.
        Type ".help" for more information; type ".quit" or z to quit.
    zsqlite> z    ... N)Úisolation_levelF)r   r-   )Úexitmsg)r   Úadd_argumentÚstrr	   r0   Ú
parse_argsr4   Úreprr   ÚplatformÚmodulesr   r/   Úps1Úps2Úconnectr   r   r   ÚreadlineÚImportErrorÚinteractÚcloser   )ÚargsÚparserÚdb_nameÚeofkeyÚbannerÚconÚconsolerU   s   *       r   Úmainr`   I   sÂ  € ÜØ(Øô€Fð ×ÑØœ j¸ðOð ô ð ×ÑØ”C˜sð7ð ô ð ×ÑØˆk )Ø!¤'×"8Ñ"8Ð!9Ð:Ø6ð ô ð
 ×Ò˜dÑ#€Dà‡}�}˜
Ô"Ø2‰ä�t—}‘}Ó%ˆô ‡|�|�wÔ =¼¿¹Ô#CØ‰àˆÜð 2Ü29×2HÑ2HÐ1Ið JØ�Yð <ð =C¸8ð Dðó 	÷ 
‰‹ð ð „C„GØ„C„Gä
�/Š/˜$Ÿ-™-¸Ô
>€CðØ�8�8ˆ8ä�CŸ™°5Ö9ô /¨sÓ3ˆGðÛð ×Ñ˜V¨RÐÔ0à�	‰	Œä‡H‚HˆQ†Køô ô Ùðûð 	�	‰	�ús0   Ä:5G  Å0F/ Å4G  Æ/F=Æ:G  Æ<F=Æ=G  Ç GÚ__main__r(   )T)r=   r	   r   Úargparser   Úcoder   Útextwrapr   r   r   r`   r   Úargv© r%   r   Ú<module>rg      sS   ðñó Û 
å #Ý #Ý ôô,!Ð1ô !òH>ðB ˆzÔÙˆ�‰�"�Öñ r%   