Files
aitsc/.venv/Lib/site-packages/sqlalchemy/engine/__pycache__/characteristics.cpython-312.pyc

78 lines
6.7 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-29 00:34:40 +08:00
<00><19>h8<00><01><><00>ddlmZddlZddlZddlmZddlmZej rddlmZddl m
2025-02-23 09:07:52 +08:00
Z
ddl m Z Gd <09>d
ej<00>Z Gd <0B>d e <0A>ZGd <0A>de <0A>Zy)<0F>)<01> annotationsN)<01>Any)<01>ClassVar<61>)<01>
Connection)<01>DBAPIConnection)<01>Dialectc<01><><00>eZdZUdZdZdZded<ej d d<06><04>Z ej d d<07><04>Z
dd<08>Z ej dd <09><04>Z dd
<EFBFBD>Z y )<11>ConnectionCharacteristica<63>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
<20>F<>ClassVar[bool]<5D> transactionalc<01><00>y)zNReset the characteristic on the DBAPI connection to its default
value.Nr <00><03>self<6C>dialect<63>
2025-08-29 00:34:40 +08:00
dbapi_conns <20>ND:\pythonpj\aitsc\.venv\Lib\site-packages\sqlalchemy/engine/characteristics.py<70>reset_characteristicz-ConnectionCharacteristic.reset_characteristic,<00><00><00>c<01><00>y)z<set characteristic on the DBAPI connection to a given value.Nr <00>rrr<00>values r<00>set_characteristicz+ConnectionCharacteristic.set_characteristic3rrc<01>*<00>|j|||<04>y)z<>set characteristic on the :class:`_engine.Connection` to a given
2025-02-23 09:07:52 +08:00
value.
.. versionadded:: 2.0.30 - added to support elements that are local
to the :class:`_engine.Connection` itself.
N)r<00>rr<00>connrrs r<00>set_connection_characteristicz6ConnectionCharacteristic.set_connection_characteristic9s<00><00> <0A><1F><1F><07><1A>U<EFBFBD>;rc<01><00>y)zXGiven a DBAPI connection, get the current value of the
characteristic.
Nr rs r<00>get_characteristicz+ConnectionCharacteristic.get_characteristicIrrc<01>&<00>|j||<03>S)z<>Given a :class:`_engine.Connection`, get the current value of the
characteristic.
.. versionadded:: 2.0.30 - added to support elements that are local
to the :class:`_engine.Connection` itself.
)r!<00>rrrrs r<00>get_connection_characteristicz6ConnectionCharacteristic.get_connection_characteristicRs<00><00><14>&<26>&<26>w<EFBFBD>
<EFBFBD>;<3B>;rN<>rr rr<00>return<72>None<6E>rr rrrrr&r'<00>
rr rrrrrrr&r'<00>rr rrr&r<00>rr rrrrr&r)<0E>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> __slots__r<00>__annotations__<5F>abc<62>abstractmethodrrrr!r$r rrr r s<00><00><08>&<13>I<EFBFBD>$)<29>M<EFBFBD>><3E>)<29><08><17><17><12><1E><12>,;<3B><12> <0A><12><18><12>  <09><17><17>K<01><1E>K<01>,;<3B>K<01>DG<44>K<01> <0A>K<01><18>K<01>
<<3C><18><<3C><19><<3C>$<24> <<3C>
<13> <<3C>
<0E> <<3C>  <09><17><17> <0C><1E> <0C>,;<3B> <0C> <0C> <0C><18> <0C>
<<3C><1E>
<<3C>&0<>
<<3C>>M<>
<<3C> <0C>
<rr c<01>`<00>eZdZUdZdZded< d d<05>Z d
d<06>Z d d<07>Zy) <0C>IsolationLevelCharacteristicz0Manage the isolation level on a DBAPI connectionTr rc<01>&<00>|j|<02>y<00>N)<01>reset_isolation_levelrs rrz1IsolationLevelCharacteristic.reset_characteristicds<00><00> <10>%<25>%<25>j<EFBFBD>1rc<01>(<00>|j||<03>yr7)<01>_assert_and_set_isolation_levelrs rrz/IsolationLevelCharacteristic.set_characteristicis<00><00> <10>/<2F>/<2F>
<EFBFBD>E<EFBFBD>Brc<01>$<00>|j|<02>Sr7)<01>get_isolation_levelrs rr!z/IsolationLevelCharacteristic.get_characteristicns<00><00><17>*<2A>*<2A>:<3A>6<>6rNr%r(r*) r,r-r.r/rr1rrr!r rrr5r5_ss<00><00>:<3A>$(<28>M<EFBFBD>><3E>(<28>2<><1E>2<>,;<3B>2<> <0A>2<>
C<01><1E>C<01>,;<3B>C<01>DG<44>C<01> <0A>C<01>
7<><1E>7<>,;<3B>7<> <0C>7rr5c<01><><00>eZdZUdZdZded< d d<05>Z d d<06>Z d d<07>Z dd<08>Z dd <09>Z
y
)<10>LoggingTokenCharacteristiczgManage the 'logging_token' option of a :class:`_engine.Connection`.
.. versionadded:: 2.0.30
Fr rc<01><00>yr7r rs rrz/LoggingTokenCharacteristic.reset_characteristic}s<00><00> rc<01><00>t<00><00>r7<00><01>NotImplementedErrorrs rrz-LoggingTokenCharacteristic.set_characteristic<69><00> <00><00>"<22>#<23>#rc<01>$<00><04><00>r <0B>fd<01>|_y|`y)Nc<01><00><01>d<01><01>d|<00><01>S)N<>[z] r )<02>msgrs <20>r<00><lambda>zJLoggingTokenCharacteristic.set_connection_characteristic.<locals>.<lambda><3E>s
<00><><00>u<EFBFBD>c<EFBFBD>2Jr)<01>_message_formatterrs `rrz8LoggingTokenCharacteristic.set_connection_characteristic<69>s<00><><00> <11>&J<>D<EFBFBD> #<23><14>'rc<01><00>t<00><00>r7rArs rr!z-LoggingTokenCharacteristic.get_characteristic<69>rCrc<01>:<00>|jjdd<00>S)N<> logging_token)<02>_execution_options<6E>getr#s rr$z8LoggingTokenCharacteristic.get_connection_characteristic<69>s<00><00><14>&<26>&<26>*<2A>*<2A>?<3F>D<EFBFBD>A<>ArNr%r(r)r*r+) r,r-r.r/rr1rrrr!r$r rrr>r>ts<><00><00><08> %*<2A>M<EFBFBD>><3E>)<29> <0A><1E> <0A>,;<3B> <0A> <0A> <0A>
$<24><1E>$<24>,;<3B>$<24>DG<44>$<24> <0A>$<24>
(<28><18>
(<28><19>
(<28>$<24>
(<28>
<13>
(<28>
<0E>
(<28>$<24><1E>$<24>,;<3B>$<24> <0C>$<24>
B<01><1E>B<01>&0<>B<01>>M<>B<01> <0C>Brr>)<10>
__future__rr2<00>typingrr<00> TYPE_CHECKING<4E>baser<00>
interfacesrr <00>ABCr r5r>r rr<00><module>rUsW<00><01>#<23>
<EFBFBD> <0A><16><1B> <09><17><17> <20>+<2B>#<23>H<<3C>s<EFBFBD>w<EFBFBD>w<EFBFBD>H<<3C>V7<>#;<3B>7<>*'B<01>!9<>'Br