L iddlmZddlZddlZddlmZddlmZej rddlmZddl m Z ddl m Z Gd d ejZ Gd d e ZGd de Zy)) annotationsN)Any)ClassVar) Connection)DBAPIConnection)DialectceZdZUdZdZdZded<ej d dZ ej d dZ ddZ ej dd Z dd Z y )ConnectionCharacteristicaAn 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 FClassVar[bool] transactionalcy)zNReset the characteristic on the DBAPI connection to its default value.Nr selfdialect dbapi_conns g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sqlalchemy/engine/characteristics.pyreset_characteristicz-ConnectionCharacteristic.reset_characteristic,cy)z),;   KK,;KDGK KK <<<$ <  <  <    ,;    < <&0 <>M <  (22,;2 2 CC,;CDGC C 77,;7 7rr5ceZdZUdZdZded< d dZ d dZ d dZ ddZ dd Z y )LoggingTokenCharacteristiczgManage the 'logging_token' option of a :class:`_engine.Connection`. .. versionadded:: 2.0.30 Fr rcyr7r rs rrz/LoggingTokenCharacteristic.reset_characteristic}s rctr7NotImplementedErrorrs rrz-LoggingTokenCharacteristic.set_characteristic "##rc$r fd|_y|`y)Ncdd|S)N[z] r )msgrs rzJLoggingTokenCharacteristic.set_connection_characteristic..s uc2Jr)_message_formatterrs `rrz8LoggingTokenCharacteristic.set_connection_characteristics &JD #'rctr7rArs rr!z-LoggingTokenCharacteristic.get_characteristicrCrc:|jjddS)N logging_token)_execution_optionsgetr#s rr$z8LoggingTokenCharacteristic.get_connection_characteristics&&**?DAArNr%r(r)r*r+) r,r-r.r/rr1rrrr!r$r rrr>r>ts %*M>)  ,;  $$,;$DG$ $ ( ( ($ (  (  ($$,;$ $ BB&0B>MB Brr>) __future__rr2typingrr TYPE_CHECKINGbaser interfacesrr ABCr r5r>r rrrUsW#   +#H