Current Path : /usr/lib/python2.7/sqlite3/ |
Current File : //usr/lib/python2.7/sqlite3/dump.pyc |
|_c @ s d Z d S( c c s | j } d Vd } | j | } xt | j D]\ } } } | d k r\ d Vn7 | d k rp d Vn# | j d r q9 n d j | V| j d d } | j d j | } g | j D] } t | d ^ q } d j | d j d | D } | j | } x | D] } d j | d Vq!Wq9 Wd } | j | } x+ | j D] \ } } } d j | VqcWd Vd S( 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(). s BEGIN TRANSACTION;s SELECT "name", "type", "sql" FROM "sqlite_master" WHERE "sql" NOT NULL AND "type" == 'table' t sqlite_sequences DELETE FROM "sqlite_sequence";t sqlite_stat1s ANALYZE "sqlite_master";t sqlite_s {0};t "s ""s PRAGMA table_info("{0}")i s2 SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";t ,c s s* | ] } d j | j d d Vq d S( s '||quote("{0}")||'R s ""N( t formatt replace( t .0t col( ( s"