Hacked By AnonymousFox

Current Path : /opt/alt/python310/lib64/python3.10/sqlite3/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/sqlite3/__pycache__/dump.cpython-310.opt-1.pyc

o

6��f��@sdd�ZdS)ccsJ�|��}dVd}|�|�}g}|��D]h\}}}|dkr2|�d���}dg}|dd�|D�7}q|dkr:d	Vn|�d
�r@qd�|�V|�dd
�}	|�d�|	��}
dd�|
��D�}d�|	d�dd�|D���}|�|�}|D]
}
d�|
d�Vqrqd}|�|�}|��D]\}}}d�|�Vq�|D]}
d�|
�Vq�dVdS)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"
        �sqlite_sequencez SELECT * FROM "sqlite_sequence";zDELETE FROM "sqlite_sequence"cSs&g|]}d|d�d|d�d��qS)z&INSERT INTO "sqlite_sequence" VALUES('�z',��)�)�.0�rowrr�3/opt/alt/python310/lib64/python3.10/sqlite3/dump.py�
<listcomp>$s��z_iterdump.<locals>.<listcomp>Zsqlite_stat1zANALYZE "sqlite_master";Zsqlite_z{0};�"�""zPRAGMA table_info("{0}")cSsg|]}t|d��qS)r)�str)rZ
table_inforrrr	:sz2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";�,css"�|]}d�|�dd��VqdS)z'||quote("{0}")||'r
rN)�format�replace)r�colrrr�	<genexpr>=s� z_iterdump.<locals>.<genexpr>rz�
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
        zCOMMIT;N)ZcursorZexecuteZfetchall�
startswithrr�join)Z
connectionZcu�qZ
schema_resrZ
table_name�typeZsqlZrowsZtable_name_ident�resZcolumn_namesZ	query_resr�namerrr�	_iterdump
sJ�	
�
	�
�

rN)rrrrr�<module>s	

Hacked By AnonymousFox1.0, Coded By AnonymousFox