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

41 lines
6.5 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>h<EFBFBD><00><01>"<00>ddlmZddlZddlmZddlmZddlmZddlmZddlmZdd lm Z dd
2025-02-23 09:07:52 +08:00
l
m Z dd l m Z dd l mZejse s d dlmZd dlmZn ddlmZddlmZedegef<00><11>Zdd<12>ZGd<13>de <0A>ZGd<15>d<16>Zy)<18>)<01> annotationsN)<01>Any)<01>Callable)<01>Optional)<01>TypeVar<61>)<01>exc)<01>util)<01>HAS_CYEXTENSION)<01>Protocol)<01>Self<6C>)<01>_distill_params_20)<01>_distill_raw_params<6D>_C)<01>boundc<01>8<00><00>tj<00>fd<01><08>}|S)z<>Decorator, memoize a function in a connection.info stash.
Only applicable to functions which take no arguments other than a
connection. The memo will be stored in ``connection.info[key]``.
c<01><><00><01>|j<00>} |j<00>S#t$r|||<02>x|j<00><}|cYSwxYw<01>N)<03>connect<63>info<66>KeyError)<05>fn<66>self<6C>
2025-08-29 00:34:40 +08:00
connection<EFBFBD>val<61>keys <20><>CD:\pythonpj\aitsc\.venv\Lib\site-packages\sqlalchemy/engine/util.py<70> decoratedz%connection_memoize.<locals>.decorated+sS<00><><00><1F>'<27>'<27>)<29>
2025-02-23 09:07:52 +08:00
<EFBFBD> <17><1D>?<3F>?<3F>3<EFBFBD>'<27> '<27><><17> <17>)+<2B>D<EFBFBD>*<2A>)=<3D> =<3D>J<EFBFBD>O<EFBFBD>O<EFBFBD>C<EFBFBD> <20>3<EFBFBD><16>J<EFBFBD> <17>s<00>"<00>#A<03>A)r
<00> decorator)rrs` r<00>connection_memoizer!$s#<00><><00>
<EFBFBD>^<5E>^<5E><17><14><17> <15><14>c<01><00>eZdZUded<y)<04> _TConsSubjectzOptional[TransactionalContext]<5D>_trans_context_managerN)<04>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__annotations__<5F>r"rr$r$7s<00><00>:<3A>:r"r$c<01>z<00>eZdZUdZdZded<dd<05>Zdd<06>Zdd<07>Zdd<08>Z dd <09>Z
dd
<EFBFBD>Z dd <0B>Z e dd <0C><04>Zdd <0A>Zdd<0E>Zy)<16>TransactionalContextz<74>Apply Python context manager behavior to transaction objects.
Performs validation to ensure the subject of the transaction is not
used if the transaction were ended prematurely.
)<03>_outer_trans_ctx<74>_trans_subject<63> __weakref__zOptional[_TConsSubject]r.c<01><00>t<00><00>r<00><01>NotImplementedError<6F>rs r<00>_transaction_is_activez+TransactionalContext._transaction_is_activeG<00> <00><00>!<21>#<23>#r"c<01><00>t<00><00>rr1r3s r<00>_transaction_is_closedz+TransactionalContext._transaction_is_closedJr5r"c<01><00>t<00><00>)aindicates the object is in a state that is known to be acceptable
for rollback() to be called.
This does not necessarily mean rollback() will succeed or not raise
an error, just that there is currently no state detected that indicates
rollback() would fail or emit warnings.
It also does not mean that there's a transaction in progress, as
it is usually safe to call rollback() even if no transaction is
present.
.. versionadded:: 1.4.28
r1r3s r<00>_rollback_can_be_calledz,TransactionalContext._rollback_can_be_calledMs <00><00>"<22>#<23>#r"c<01><00>t<00><00>rr1r3s r<00> _get_subjectz!TransactionalContext._get_subject^r5r"c<01><00>t<00><00>rr1r3s r<00>commitzTransactionalContext.commitar5r"c<01><00>t<00><00>rr1r3s r<00>rollbackzTransactionalContext.rollbackdr5r"c<01><00>t<00><00>rr1r3s r<00>closezTransactionalContext.closegr5r"c<01>l<00>|j}|r&|j<00>stjd<01><00>yy)Nz<4E>Can't operate on closed transaction inside context manager. Please complete the context manager before emitting further commands.)r%r4r <00>InvalidRequestError)<03>cls<6C>subject<63> trans_contexts r<00>_trans_ctx_checkz%TransactionalContext._trans_ctx_checkjs><00><00><1F>6<>6<> <0A> <18> <20>7<>7<>9<><19>-<2D>-<2D>8<><12><12>:<3A> r"c<01>h<00>|j<00>}|j}||_||_||_|Sr)r;r%r-r.)rrErFs r<00> __enter__zTransactionalContext.__enter__us:<00><00><16>#<23>#<23>%<25><07> <20>6<>6<> <0A> -<2D><04><1D>%<25><04><1B>)-<2D><07>&<26><13> r"c<01><00>t|dd<00>}|duxs|j|u}|<01>G|j<00>r7 |j<00>|s|<04>J<00>|j|_dx|_ |_y |j<00>s!|j<00>s1|j<00>n |j <00>r|j<00>|s|<04>J<00>|j|_dx|_ |_y#t j
<00>5|j <00>r|j<00>ddd<00>n #1swYnxYwY<00><>xYw#|s|<04>J<00>|j|_dx|_ |_wxYw#|s|<04>J<00>|j|_dx|_ |_wxYw)Nr.) <0C>getattrr%r4r=r
<00> safe_reraiser9r?r-r.r7rA)r<00>type_<65>value<75> tracebackrE<00>out_of_band_exits r<00>__exit__zTransactionalContext.__exit__<5F>s|<00><00><19>$<24> 0<>$<24>7<><07> <14>t<EFBFBD>O<EFBFBD> I<>w<EFBFBD>=<3D>=<3D>T<EFBFBD>I<> <19> <11>=<3D>T<EFBFBD>8<>8<>:<3A>
C<01><14> <0B> <0B> <0A> (<28>"<22>.<2E>.<2E>.<2E>59<35>5J<35>5J<35>G<EFBFBD>2<>>B<>B<><04>#<23>d<EFBFBD>&;<3B> C<01><1B>2<>2<>4<><1F>6<>6<>8<><1C>
<EFBFBD>
<EFBFBD> <0C><1B>3<>3<>5<><1C> <0A> <0A><0F>'<27>"<22>.<2E>.<2E>.<2E>59<35>5J<35>5J<35>G<EFBFBD>2<>>B<>B<><04>#<23>d<EFBFBD>&;<3B><>+ (<28><19>&<26>&<26>(<28><1B>3<>3<>5<><1C> <0A> <0A><0F>)<29>(<28>(<28><><EFBFBD>(<28>"<22>.<2E>.<2E>.<2E>59<35>5J<35>5J<35>G<EFBFBD>2<>>B<>B<><04>#<23>d<EFBFBD>&;<3B><>(<28>"<22>.<2E>.<2E>.<2E>59<35>5J<35>5J<35>G<EFBFBD>2<>>B<>B<><04>#<23>d<EFBFBD>&;<3B>s<<00>C#<00>,AE<00>#D1<03>9!D#<05> D1<03>#D, <09>(D1<03>/D4<00>4'E<03>'FN)<02>return<72>bool)rRr$)rR<00>None)rEr$rRrT)rRr )rMrrNrrOrrRrT)r&r'r(<00>__doc__<5F> __slots__r)r4r7r9r;r=r?rA<00> classmethodrGrIrQr*r"rr,r,;sW<00><00><08>F<01>I<EFBFBD>+<2B>+<2B>$<24>$<24>$<24>"$<24>$<24>$<24>$<24><11><12><11><12>
<14>&Cr"r,)r<00>strrRzCallable[[_C], _C])<18>
__future__r<00>typingrrrr<00>r r
<00> util._has_cyr <00> util.typingr r <00> TYPE_CHECKING<4E>_py_utilrr<00>sqlalchemy.cyextension.utilrr!r$r,r*r"r<00><module>rasy<00><01>#<23> <0A><16><1B><1B><1A><12><13>*<2A>"<22><1E> <09><17><17><EFBFBD>B<>D<><06><06> <0A>T<EFBFBD><18>"<22>c<EFBFBD>'<27>*<2A>+<2B><02><15>&;<3B>H<EFBFBD>;<3B>lC<01>lCr"