
    F\h                         S  r S rSS.S jrg)c                 D    SR                  U R                  SS5      5      $ )Nz"{0}""z""formatreplace)names    #/usr/lib/python3.13/sqlite3/dump.py_quote_namer	   
   s    >>$,,sD122    c                 D    SR                  U R                  SS5      5      $ )Nz'{0}''z''r   )values    r   _quote_valuer      s    >>%--T233r
   N)filterc             #   
  #    SnU R                  5       nSUl        UR                  S5      R                  5       nU(       a  Sv   Sv   U(       a  SnU/nOSn/ nSU S	3nUR                  Xv5      n/ n	UR                  5        GH  u  pnU
S
:X  aN  UR                  S5      nS/n	U	UR                  5        V
Vs/ s H  u  pS[	        U
5       SU S3PM     snn
-  n	M[  U
S:X  a  Sv   OuU
R                  S5      (       a  M~  UR                  S5      (       a4  U(       d  SnSv   SR                  [	        U
5      [	        U5      5      v   OSR                  U5      v   [        U
5      nUR                  SU S35      nUR                  5        Vs/ s H  n[        US   5      PM     nnSR                  USR                  S U 5       5      5      nUR                  U5      nU H  nSR                  US   5      v   M     GM     SU S3nUR                  Xv5      nUR                  5        H  u  npSR                  U5      v   M     U(       a  S v   U	 H  nSR                  U5      v   M     S!v   gs  snn
f s  snf 7f)"a  
Returns an iterator to the dump of the database in an SQL text format.

Used to produce an SQL dump of the database.  Useful to save an in-memory
database for later restoration.  This function should not be called
directly but instead called from the Connection method, iterdump().
FNzPRAGMA foreign_key_checkzPRAGMA foreign_keys=OFF;zBEGIN TRANSACTION;zAND "name" LIKE ? z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
            z%
            ORDER BY "name"
        sqlite_sequencez SELECT * FROM "sqlite_sequence";zDELETE FROM "sqlite_sequence"z%INSERT INTO "sqlite_sequence" VALUES(,)sqlite_stat1zANALYZE "sqlite_master";sqlite_zCREATE VIRTUAL TABLETzPRAGMA writable_schema=ON;zXINSERT INTO sqlite_master(type,name,tbl_name,rootpage,sql)VALUES('table',{0},{0},0,{1});z{0};zPRAGMA table_info(   z0SELECT 'INSERT INTO {0} VALUES('{1}')' FROM {0};z','c              3   V   #    U  H  nS R                  [        U5      5      v   M!     g7f)z||quote({0})||N)r   r	   ).0cols     r   	<genexpr>_iterdump.<locals>.<genexpr>U   s'      EQc ''C(899\s   ')    z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
            z	
        zPRAGMA writable_schema=OFF;zCOMMIT;)
cursorrow_factoryexecutefetchallr   
startswithr   r	   strjoin)
connectionr   writeable_schemacu
violationsfilter_name_clauseparamsq
schema_resr   
table_nametypesqlrows	seq_valuetable_name_identres
table_infocolumn_names	query_resrowr   s                         r   	_iterdumpr8      s     				BBN67@@BJ()
0
    !		A A&JO!+!4!4!6
#**::@AD>?O-1]]_ -<)J 8Z8P7QQRS\R]]^_-<  O >),-""9--^^233##' 233396":."3'4 --$% 'z2jj-.>-?qAB=@\\^L^zJqM*^L>EEJJ EQ 
 JJqM	C--A'( I "7P
    !		A A&J%..0dmmC ! 1 +, mmC !  o 0 Ms    B7J9I8
B:JI>)CJ)r	   r   r8    r
   r   <module>r:      s   34 %) _r
   