Şuanki Dizin: /usr/lib64/python3.9/sqlite3/__pycache__/ |
Şuanki Dosya : //usr/lib64/python3.9/sqlite3/__pycache__/dump.cpython-39.opt-1.pyc |
a �DOg �@sdd�ZdS)c cs|��}dVd}|�|�}|��D]�\}}}|dkr>dVn*|dkrNdVn|�d�r\q$nd�|�V|�d d �}|�d�|��}dd �|��D�} d�|d�dd�| D���}|�|�} | D]}d�|d�Vq�q$d}|�|�}|��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" Zsqlite_sequencezDELETE FROM "sqlite_sequence";Zsqlite_stat1zANALYZE "sqlite_master";Zsqlite_z{0};�"�""zPRAGMA table_info("{0}")cSsg|]}t|d��qS)�)�str)�.0Z table_info�r�$/usr/lib64/python3.9/sqlite3/dump.py� <listcomp>3�z_iterdump.<locals>.<listcomp>z2SELECT 'INSERT INTO "{0}" VALUES({1})' FROM "{0}";�,css |]}d�|�dd��VqdS)z'||quote("{0}")||'rrN)�format�replace)r�colrrr� <genexpr>6r 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� startswithrr�join) � connectionZcu�qZ schema_resZ table_name�typeZsqlZtable_name_ident�resZcolumn_namesZ query_res�row�namerrr� _iterdump s6 � rN)rrrrr�<module> r
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4