
    daf                     
    d  Z y)c           
   #   l  K   d}| j                         }d|_        d d}|j                  |      }g }|j                         D ]}  \  }}}|dk(  rC|j                  d      j                         }	dg}||	D 
cg c]  }
d|
d	    d
|
d    d c}
z  }P|dk(  rd ns|j	                  d      rl|j	                  d      r=|sd}d dj                  |j                  dd      |j                  dd             ndj                  |       |j                  dd      }|j                  dj                  |            }|j                         D cg c]  }t        |d          }}dj                  |dj                  d |D                    }|j                  |      }|D ]  }
dj                  |
d	            d}|j                  |      }|j                         D ]  \  }}}dj                  |        |rd |D ]  }
dj                  |
        d yc c}
w c c}w w) 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BEGIN TRANSACTION;z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
            ORDER BY "name"
        sqlite_sequencez SELECT * FROM "sqlite_sequence";zDELETE FROM "sqlite_sequence"z&INSERT INTO "sqlite_sequence" VALUES('    z',   )sqlite_stat1zANALYZE "sqlite_master";sqlite_zCREATE VIRTUAL TABLETzPRAGMA writable_schema=ON;z^INSERT INTO sqlite_master(type,name,tbl_name,rootpage,sql)VALUES('table','{0}','{0}',0,'{1}');'z''z{0};"""zPRAGMA table_info("{0}")z2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";,c              3   ^   K   | ]%  }d j                  |j                  dd             ' yw)z'||quote("{0}")||'r
   r   N)formatreplace).0cols     '/root/Python-3.12.4/Lib/sqlite3/dump.py	<genexpr>z_iterdump.<locals>.<genexpr>A   s(     eQT-44S[[d5KLes   +-z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
        zPRAGMA writable_schema=OFF;zCOMMIT;)	cursorrow_factoryexecutefetchall
startswithr   r   strjoin)
connectionwriteable_schemacuq
schema_resr   
table_nametypesqlrowsrowtable_name_identres
table_infocolumn_names	query_resnames                    r   	_iterdumpr+   
   st     				BBN
	A AJO!+!4!4!6 ")
D#**::@AJJLD>?O  :#a&SVHAN  O >),-""9-^^23##' 2399? ((d3kk#t,: --$% &--c48jj3::;KLM=@\\^LzJqM*LLDKKHHeXdeeg JJqM	 	)C--A'(	)C")J	A AJ%..0 "dCmmC !" +,  "mmC !" g 0 Ms    A7H49H*CH4H/+C	H4N)r+        r   <module>r.      s   Or-   