__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
��Yf � @ s d d � Z d S)c
c sz | j � } d Vd } | j | � } x| j � D]� \ } } } | d k rV d Vn7 | d k rj d Vn# | j d � r q3 n d j | � V| j d d
� } | j d j | � � } d d
� | j � D� } d j | d j d d � | D� � � } | j | � }
x |
D] } d j | d � VqWq3 Wd } | j | � } x+ | j � D] \ } } } d j | � VqPWd Vd S)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"
Zsqlite_sequencezDELETE FROM "sqlite_sequence";Zsqlite_stat1zANALYZE "sqlite_master";Zsqlite_z{0};�"z""zPRAGMA table_info("{0}")c S s g | ] } t | d � � q S)� )�str)�.0Z
table_info� r �1/opt/alt/python35/lib64/python3.5/sqlite3/dump.py�
<listcomp>3 s z_iterdump.<locals>.<listcomp>z2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";�,c s s* | ] } d j | j d d � � Vq d S)z'||quote("{0}")||'r z""N)�format�replace)r �colr r r � <genexpr>6 s z_iterdump.<locals>.<genexpr>� z�
SELECT "name", "type", "sql"
FROM "sqlite_master"
WHERE "sql" NOT NULL AND
"type" IN ('index', 'trigger', 'view')
zCOMMIT;N)ZcursorZexecuteZfetchall�
startswithr r
�join)
Z
connectionZcu�qZ
schema_resZ
table_name�typeZsqlZtable_name_ident�resZcolumn_namesZ query_res�row�namer r r � _iterdump
s4
r N)r r r r r �<module>
s | Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __init__.cpython-35.opt-1.pyc | File | 169 B | 0644 |
|
| __init__.cpython-35.opt-2.pyc | File | 161 B | 0644 |
|
| __init__.cpython-35.pyc | File | 169 B | 0644 |
|
| dbapi2.cpython-35.opt-1.pyc | File | 2.64 KB | 0644 |
|
| dbapi2.cpython-35.opt-2.pyc | File | 2.63 KB | 0644 |
|
| dbapi2.cpython-35.pyc | File | 2.64 KB | 0644 |
|
| dump.cpython-35.opt-1.pyc | File | 2 KB | 0644 |
|
| dump.cpython-35.opt-2.pyc | File | 1.69 KB | 0644 |
|
| dump.cpython-35.pyc | File | 2 KB | 0644 |
|