zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
U
¸ý°ds    ã@sxddlmZddlZddlZddlmZddlmZejrRddlmZddlm    Z    Gdd    „d    ej
ƒZ Gd
d „d e ƒZ dS) é)Ú annotationsN)ÚAny)ÚClassVaré)ÚDBAPIConnection)ÚDialectc@sleZdZUdZdZdZded<ejdddd    œd
d „ƒZ    ejddd dd œdd„ƒZ
ejddd d    œdd„ƒZ dS)ÚConnectionCharacteristica÷An abstract base for an object that can set, get and reset a
    per-connection characteristic, typically one that gets reset when the
    connection is returned to the connection pool.
 
    transaction isolation is the canonical example, and the
    ``IsolationLevelCharacteristic`` implementation provides this for the
    ``DefaultDialect``.
 
    The ``ConnectionCharacteristic`` class should call upon the ``Dialect`` for
    the implementation of each method.   The object exists strictly to serve as
    a dialect visitor that can be placed into the
    ``DefaultDialect.connection_characteristics`` dictionary where it will take
    effect for calls to :meth:`_engine.Connection.execution_options` and
    related APIs.
 
    .. versionadded:: 1.4
 
    ©FúClassVar[bool]Ú transactionalrrÚNone©ÚdialectÚ
dbapi_connÚreturncCsdS)z@Reset the characteristic on the connection to its default value.Nr    ©Úselfrrr    r    úXd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/engine/characteristics.pyÚreset_characteristic%sz-ConnectionCharacteristic.reset_characteristicr©rrÚvaluercCsdS)z6set characteristic on the connection to a given value.Nr    ©rrrrr    r    rÚset_characteristic+sz+ConnectionCharacteristic.set_characteristiccCsdS)zXGiven a DBAPI connection, get the current value of the
        characteristic.
 
        Nr    rr    r    rÚget_characteristic1sz+ConnectionCharacteristic.get_characteristicN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú    __slots__r Ú__annotations__ÚabcÚabstractmethodrrrr    r    r    rr s
 rc@sReZdZUdZded<ddddœdd    „Zddd
dd œd d „Zddd
dœdd„ZdS)ÚIsolationLevelCharacteristicTr
r rrr r cCs| |¡dS©N)Zreset_isolation_levelrr    r    rr>sz1IsolationLevelCharacteristic.reset_characteristicrrcCs| ||¡dSr#)Z_assert_and_set_isolation_levelrr    r    rrCsz/IsolationLevelCharacteristic.set_characteristiccCs
| |¡Sr#)Zget_isolation_levelrr    r    rrHsz/IsolationLevelCharacteristic.get_characteristicN)rrrr rrrrr    r    r    rr";s
 r") Ú
__future__rr ÚtypingrrÚ TYPE_CHECKINGZ
interfacesrrÚABCrr"r    r    r    rÚ<module>s     .