• File: dump.cpython-36.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/proc/self/root/usr/lib64/python3.6/sqlite3/__pycache__/dump.cpython-36.opt-1.pyc
  • Date Modified: 11/20/2026 11:26 PM
  • File size: 1.86 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
3


 \	@sddZdS)c
cs|j}dVd}|j|}x|jD]\}}}|dkr@dVn*|dkrPdVn|jdr^q&ndj|V|jd	d
}|jdj|}dd
|jD}	dj|djdd|	D}|j|}
x|
D]}dj|dVqWq&Wd}|j|}x"|jD]\}}}dj|VqWdVdS)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().
    zBEGIN TRANSACTION;z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
            ORDER BY "name"
        Zsqlite_sequencezDELETE FROM "sqlite_sequence";Zsqlite_stat1zANALYZE "sqlite_master";Zsqlite_z{0};"z""zPRAGMA table_info("{0}")cSsg|]}t|dqS))str).0Z
table_infor/usr/lib64/python3.6/dump.py
<listcomp>3sz_iterdump.<locals>.<listcomp>z2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";,css |]}dj|jddVqdS)z'||quote("{0}")||'rz""N)formatreplace)rcolrrr	<genexpr>6sz_iterdump.<locals>.<genexpr>z
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
        zCOMMIT;N)ZcursorZexecuteZfetchall
startswithr	r
join)
Z
connectionZcuqZ
schema_resZ
table_nametypeZsqlZtable_name_identresZcolumn_namesZ	query_resrownamerrr	_iterdump
s4		

	


rN)rrrrr<module>
s