403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/apsw/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/apsw/__pycache__/bestpractice.cpython-312.pyc
�

��f
��~�UdZddlmZddlmZddlZddlZd
d�Zddd�Zd
d�Z	d
d�Z
dd	�Zeee	e
efZd
e
d<	dd�Zy)zO
Module to ensure SQLite usage prevents common mistakes, and best performance.
�)�annotations)�CallableNc�(�|jdd�y)z�Turns on write ahead logging

    Reduces contention and improves write performance.  WAL is
    `described here <https://www.sqlite.org/wal.html>`__.
    �journal_mode�walN��pragma��
connections �3/usr/lib/python3/dist-packages/apsw/bestpractice.py�connection_walr
s�����n�e�,�c�&�|j|�y)a\Sets a short busy timeout

    :param duration_ms: How many thousandths of a second to wait

    When another thread or process has locked the database, SQLite
    immediately raises :exc:`apsw.BusyError`.  Changing the `busy
    timeout <https://www.sqlite.org/c3ref/busy_timeout.html>`__ gives
    a grace period during which SQLite retries.
    N)�setbusytimeout)r�duration_mss  r�connection_busy_timeoutrs�����k�*rc�(�|jdd�y)z�Enables foreign key constraints

    `Foreign keys <https://www.sqlite.org/foreignkeys.html>`__ need to
    `be enabled <https://www.sqlite.org/foreignkeys.html#fk_enable>`__
    to have an effect.
    �foreign_keys�ONNrr
s r�connection_enable_foreign_keysr$s�����n�d�+rc��|jtjd�|jtjd�y)a=Double quotes are for identifiers only, not strings

    Turns off `allowing double quoted strings
    <https://www.sqlite.org/quirks.html#dblquote>`__ if they don't
    match any identifier (column/table names etc), making it an error
    to use double quotes around strings.  SQL strings use single
    quotes.
    rN)�config�apsw�SQLITE_DBCONFIG_DQS_DML�SQLITE_DBCONFIG_DQS_DDLr
s r�connection_dqsr.s0�����d�2�2�A�6����d�2�2�A�6rc�@�tjj�y)zZForwards SQLite logging to Python logging module

    See :meth:`apsw.ext.log_sqlite`
    N)r�ext�
log_sqlite�rr�library_loggingr!;s��
	�H�H���r�tuple[Callable, ...]�recommendedc����g�|D]6}|jjd�r�j|��0|��8d�fd�}tjj|�y)z=Applies library immediately and connection to new connections�connection_c�$���D]
}||��y)Nr )r�func�hookss  �r�best_practise_connection_applyz-apply.<locals>.best_practise_connection_applyVs����	�D����	rN)r�apsw.Connection)�__name__�
startswith�appendr�connection_hooks)�whichr'r)r(s   @r�applyr0MsV����E�����=�=�#�#�M�2��L�L����F�	��	��� � �!?�@r)rr*�return�None)�d)rr*r�intr1r2)r1r2)r/r"r1r2)�__doc__�
__future__r�typingrr�apsw.extr
rrrr!r#�__annotations__r0r rr�<module>r:s\���#����-�
+�,�
7����"���%��
!���
Ar

Youez - 2016 - github.com/yon3zu
LinuXploit