Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/sqlite3/
Upload File :
Current File : //usr/lib/python2.7/sqlite3/dump.pyc


|_c@s
dZdS(ccs|j}dVd}|j|}xt|jD]\}}}|dkr\dVn7|dkrpdVn#|jdrq9ndj|V|jd	d
}|jdj|}g|jD]}	t|	d^q}
d
j|djd|
D}|j|}x |D]}dj|dVq!Wq9Wd}|j|}x+|jD]\}
}}dj|VqcWdVdS(s/
    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().
    sBEGIN TRANSACTION;s
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
        tsqlite_sequencesDELETE FROM "sqlite_sequence";tsqlite_stat1sANALYZE "sqlite_master";tsqlite_s{0};t"s""sPRAGMA table_info("{0}")is2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";t,css*|] }dj|jddVqdS(s'||quote("{0}")||'Rs""N(tformattreplace(t.0tcol((s"/usr/lib/python2.7/sqlite3/dump.pys	<genexpr>5sis
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
        sCOMMIT;N(	tcursortexecutetsortedtfetchallt
startswithRRtstrtjoin(t
connectiontcutqt
schema_rest
table_namettypetsqlttable_name_identtrest
table_infotcolumn_namest	query_restrowtname((s"/usr/lib/python2.7/sqlite3/dump.pyt	_iterdump
s4	"	)
N(R(((s"/usr/lib/python2.7/sqlite3/dump.pyt<module>
s