ž Ĥ˙f c@sdd„ZdS(c csz|jƒ}dVd}|j|ƒ}x|jƒD]÷\}}}|dkrVdVn7|dkrjdVn#|jdƒrq3ndj|ƒV|jd d ƒ}|jd j|ƒƒ}d d „|jƒDƒ} dj|djdd„| Dƒƒƒ}|j|ƒ} x | D]} dj| dƒVqWq3Wd}|j|ƒ}x+|jƒD]\} }}dj|ƒVqPWdVdS(u/ 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(). uBEGIN TRANSACTION;uŞ SELECT "name", "type", "sql" FROM "sqlite_master" WHERE "sql" NOT NULL AND "type" == 'table' ORDER BY "name" usqlite_sequenceuDELETE FROM "sqlite_sequence";u sqlite_stat1uANALYZE "sqlite_master";usqlite_u{0};u"u""uPRAGMA table_info("{0}")cSs g|]}t|dƒ‘qS(i(ustr(u.0u table_info((u1/opt/alt/python33/lib64/python3.3/sqlite3/dump.pyu 3s u_iterdump..u2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";u,css*|] }dj|jddƒƒVqdS(u'||quote("{0}")||'u"u""N(uformatureplace(u.0ucol((u1/opt/alt/python33/lib64/python3.3/sqlite3/dump.pyu 6su_iterdump..iu£ SELECT "name", "type", "sql" FROM "sqlite_master" WHERE "sql" NOT NULL AND "type" IN ('index', 'trigger', 'view') uCOMMIT;N(ucursoruexecuteufetchallu startswithuformatureplaceujoin( u connectionucuuqu schema_resu table_nameutypeusqlutable_name_identuresu column_namesu query_resurowuname((u1/opt/alt/python33/lib64/python3.3/sqlite3/dump.pyu _iterdump s4      u _iterdumpN(u _iterdump(((u1/opt/alt/python33/lib64/python3.3/sqlite3/dump.pyu s