Ñò
$8Zc           @   s   d  „  Z  d S(   c      
   c   s›  |  i  ƒ  } d Vd } | i | ƒ } x+| i ƒ  D]\ } } } | d j o	 d Vn7 | d j o	 d Vn! | i d ƒ o q3 n
 d | V| i d	 | ƒ } g  } | i ƒ  D] }	 | t |	 d
 ƒ q² ~ }
 d } | d i g  } |
 D] } | d | d qì ~ ƒ 7} | d 7} | i | h | d 6ƒ } x | D] } d | d Vq9Wq3 Wd } | i | ƒ } x& | i ƒ  D] \ } } } d | VqvWd Vd 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   %s;s   PRAGMA table_info('%s')i   s*   SELECT 'INSERT INTO "%(tbl_name)s" VALUES(t   ,s	   '||quote(s   )||'s   )' FROM '%(tbl_name)s't   tbl_namei    s—   
        SELECT name, type, sql
        FROM sqlite_master
            WHERE sql NOT NULL AND
            type IN ('index', 'trigger', 'view')
        s   COMMIT;N(   t   cursort   executet   fetchallt
   startswitht   strt   join(   t
   connectiont   cut   qt
   schema_rest
   table_namet   typet   sqlt   rest   _[1]t
   table_infot   column_namest   _[2]t   colt	   query_rest   rowt   name(    (    s"   /usr/lib/python2.6/sqlite3/dump.pyt	   _iterdump   s8    	 		
	16
  N(   R   (    (    (    s"   /usr/lib/python2.6/sqlite3/dump.pyt   <module>   s    