%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyo

�
���^c@@s�dZddlmZmZmZyddlZeZWnek
rQe	ZnXd�Z
dd�Zd�Z
d�Zddd�Zddd	�Zdd
�Zdd�Zdd�ZdS(
u
Support for SQLite3
i(tabsolute_importtunicode_literalstprint_functionNcC@ststdfStS(NuYThe sqlite3 execution module failed to load: the sqlite3 python library is not available.(tHAS_SQLITE3tFalsetTrue(((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyt__virtual__s
cC@s5|dkrtStj|dd�}|j�}|S(Ntisolation_level(tNoneRtsqlite3tconnecttcursor(tdbtcontcur((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyt_connects
cC@stjS(ur
    Return version of pysqlite

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.version
    (R	tversion(((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyRs
cC@stjS(uw
    Return version of sqlite

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.sqlite_version
    (R	tsqlite_version(((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyR,s
cC@s't|�}|stS|j|�tS(u
    Issue an SQL query to sqlite3 (with no return data), usually used
    to modify the database in some way (insert, delete, create, etc)

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.modify /root/test.db 'CREATE TABLE test(id INT, testdata TEXT);'
    (RRtexecuteR(RtsqlR((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pytmodify9s

cC@s3t|�}|stS|j|�|j�}|S(u�
    Retrieve data from an sqlite3 db (returns all rows, be careful!)

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.fetch /root/test.db 'SELECT * FROM test;'
    (RRRtfetchall(RRRtrows((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pytfetchMs

cC@s3t|�}|stS|jd�|j�}|S(u�
    Show all tables in the database

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.tables /root/test.db
    u@SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;(RRRR(RRR((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyttablesas
cC@s3t|�}|stS|jd�|j�}|S(u�
    Show all indices in the database

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.indices /root/test.db
    u@SELECT name FROM sqlite_master WHERE type='index' ORDER BY name;(RRRR(RRR((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pytindicesws
cC@s
t|�S(u�
    Show all indices in the database, for people with poor spelling skills

    CLI Example:

    .. code-block:: bash

        salt '*' sqlite3.indexes /root/test.db
    (R(R((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pytindexes�s
(t__doc__t
__future__RRRR	RRtImportErrorRRRRRRRRRRR(((s8/usr/lib/python2.7/site-packages/salt/modules/sqlite3.pyt<module>s


			
	


Zerion Mini Shell 1.0