AlkantarClanX12

Your IP : 3.137.219.68


Current Path : /opt/alt/python35/lib64/python3.5/sqlite3/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/sqlite3/__pycache__/dump.cpython-35.opt-2.pyc



���]	�@sdd�ZdS)c
csz|j�}dVd}|j|�}x|j�D]�\}}}|dkrVdVn7|dkrjdVn#|jd�rq3ndj|�V|jd	d
�}|jdj|��}dd
�|j�D�}	dj|djdd�|	D���}|j|�}
x |
D]}dj|d�VqWq3Wd}|j|�}x+|j�D]\}}}dj|�VqPWdVdS)NzBEGIN TRANSACTION;z�
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" == 'table'
            ORDER BY "name"
        Zsqlite_sequencezDELETE FROM "sqlite_sequence";Zsqlite_stat1zANALYZE "sqlite_master";Zsqlite_z{0};�"z""zPRAGMA table_info("{0}")cSs g|]}t|d��qS)�)�str)�.0Z
table_info�r�)/opt/alt/python35/lib64/python3.5/dump.py�
<listcomp>3s	z_iterdump.<locals>.<listcomp>z2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";�,css*|] }dj|jdd��VqdS)z'||quote("{0}")||'rz""N)�format�replace)r�colrrr�	<genexpr>6sz_iterdump.<locals>.<genexpr>�z�
        SELECT "name", "type", "sql"
        FROM "sqlite_master"
            WHERE "sql" NOT NULL AND
            "type" IN ('index', 'trigger', 'view')
        zCOMMIT;)ZcursorZexecuteZfetchall�
startswithr	r
�join)
�
connectionZcu�qZ
schema_resZ
table_name�typeZsqlZtable_name_ident�resZcolumn_namesZ	query_res�row�namerrr�	_iterdump
s4			
rN)rrrrr�<module>
s