/opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/__pycache__
NameSizeModeActions
events.cpython-311.pyc586960644editdlrm
exc.cpython-311.pyc254090644editdlrm
inspection.cpython-311.pyc35150644editdlrm
interfaces.cpython-311.pyc157680644editdlrm
log.cpython-311.pyc96630644editdlrm
processors.cpython-311.pyc68570644editdlrm
schema.cpython-311.pyc28710644editdlrm
types.cpython-311.pyc31780644editdlrm
__init__.cpython-311.pyc69470644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/__pycache__/interfaces.cpython-311.pyc (15768B)
§ ¯Uh¼ñ<‰ãóZ—dZddlmZddlmZGd„de¦«ZGd„de¦«ZdS) aDeprecated core event interfaces. .. deprecated:: 0.7 As of SQLAlchemy 0.7, the new event system described in :ref:`event_toplevel` replaces the extension/proxy/listener system, providing a consistent interface to all events without the need for subclassing. é)Úevent)Úutilcó@—eZdZdZed„¦«Zd„Zd„Zd„Zd„Z dS)Ú PoolListenera± Hooks into the lifecycle of connections in a :class:`_pool.Pool`. .. deprecated:: 0.7 :class:`.PoolListener` is deprecated and will be removed in a future release. Please refer to :func:`.event.listen` in conjunction with the :class:`_events.PoolEvents` listener interface. Usage:: class MyListener(PoolListener): def connect(self, dbapi_con, con_record): '''perform connect operations''' # etc. # create a new pool with a listener p = QueuePool(..., listeners=[MyListener()]) # add a listener after the fact p.add_listener(MyListener()) # usage with create_engine() e = create_engine("url://", listeners=[MyListener()]) All of the standard connection :class:`~sqlalchemy.pool.Pool` types can accept event listeners for key connection lifecycle events: creation, pool check-out and check-in. There are no events fired when a connection closes. For any given DB-API connection, there will be one ``connect`` event, `n` number of ``checkout`` events, and either `n` or `n - 1` ``checkin`` events. (If a ``Connection`` is detached from its pool via the ``detach()`` method, it won't be checked back in.) These are low-level events for low-level objects: raw Python DB-API connections, without the conveniences of the SQLAlchemy ``Connection`` wrapper, ``Dialect`` services or ``ClauseElement`` execution. If you execute SQL through the connection, explicitly closing all cursors and other resources is recommended. Events also receive a ``_ConnectionRecord``, a long-lived internal ``Pool`` object that basically represents a "slot" in the connection pool. ``_ConnectionRecord`` objects have one public attribute of note: ``info``, a dictionary whose contents are scoped to the lifetime of the DB-API connection managed by the record. You can use this shared storage area however you like. There is no need to subclass ``PoolListener`` to handle events. Any class that implements one or more of these methods can be used as a pool listener. The ``Pool`` will inspect the methods provided by a listener object and add the listener to one or more internal event queues based on its capabilities. In terms of efficiency and function call overhead, you're much better off only providing implementations for the hooks you'll be using. cóP—gd¢}tj||¬¦«}|D]Z}tt|¦«}t||d¦«}|�0tj||¦«stjd|›d|›d�¦«Œ[t |d¦«rtj|d|j ¦«t |d¦«rtj|d|j ¦«t |d ¦«rtj|d |j ¦«t |d ¦«rtj|d |j ¦«dSdS) z^Adapt a :class:`.PoolListener` to individual :class:`event.Dispatch` events. )ÚconnectÚ first_connectÚcheckoutÚcheckin)ÚmethodsNz PoolListener.z› is deprecated. The PoolListener class will be removed in a future release. Please transition to the @event interface, using @event.listens_for(Engine, 'ú').rr r r ) rÚ as_interfaceÚgetattrrÚmethods_equivalentÚwarn_deprecatedÚhasattrrÚlistenrr r r )ÚclsÚselfÚlistenerr ÚmethÚme_methÚls_meths úi/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/interfaces.pyÚ_adapt_listenerzPoolListener._adapt_listenerRsZ€ðFÐEÐEˆÝÔ$ X°wÐ?Ñ?Ô?ˆàð ð ˆDÝ�l¨DÑ1Ô1ˆGݘh¨¨dÑ3Ô3ˆGàÐ"­4Ô+Bؘñ,ô,Ð"õÔ$Ð$ðBFÀÀÀtÀtÀtðMñôðøõ �8˜YÑ 'Ô 'ð <Ý ŒL˜˜y¨(Ô*:Ñ ;Ô ;Ð ;Ý �8˜_Ñ -Ô -ð HÝ ŒL˜˜°Ô0FÑ GÔ GÐ GÝ �8˜ZÑ (Ô (ð >Ý ŒL˜˜z¨8Ô+<Ñ =Ô =Ð =Ý �8˜YÑ 'Ô 'ð <Ý ŒL˜˜y¨(Ô*:Ñ ;Ô ;Ð ;Ð ;Ð ;ð <ð <ócó—dS)a(Called once for each new DB-API connection or Pool's ``creator()``. dbapi_con A newly connected raw DB-API connection (not a SQLAlchemy ``Connection`` wrapper). con_record The ``_ConnectionRecord`` that persistently manages the connection N©©rÚ dbapi_conÚ con_records rrzPoolListener.connectsó€€€rcó—dS)aCalled exactly once for the first DB-API connection. dbapi_con A newly connected raw DB-API connection (not a SQLAlchemy ``Connection`` wrapper). con_record The ``_ConnectionRecord`` that persistently manages the connection Nrrs rr zPoolListener.first_connectr"rcó—dS)aCCalled when a connection is retrieved from the Pool. dbapi_con A raw DB-API connection con_record The ``_ConnectionRecord`` that persistently manages the connection con_proxy The ``_ConnectionFairy`` which manages the connection for the span of the current checkout. If you raise an ``exc.DisconnectionError``, the current connection will be disposed and a fresh connection retrieved. Processing of all checkout listeners will abort and restart using the new connection. Nr)rr r!Ú con_proxys rr zPoolListener.checkout‹r"rcó—dS)a£Called when a connection returns to the pool. Note that the connection may be closed, and may be None if the connection has been invalidated. ``checkin`` will not be called for detached connections. (They do not return to the pool.) dbapi_con A raw DB-API connection con_record The ``_ConnectionRecord`` that persistently manages the connection Nrrs rr zPoolListener.checkinžr"rN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú classmethodrrr r r rrrrrsw€€€€€ð7ð7ðrð<ð<ñ„[ð<ð@  ð  ð  ð  ð  ð  ð ð ð ð&  ð  ð  ð  ð  rrcór—eZdZdZed„¦«Zd„Zd„Zd„Zd„Z d„Z dd „Z d „Z d „Z d „Zd „Zd„Zd„ZdS)ÚConnectionProxya>Allows interception of statement execution by Connections. .. deprecated:: 0.7 :class:`.ConnectionProxy` is deprecated and will be removed in a future release. Please refer to :func:`.event.listen` in conjunction with the :class:`_events.ConnectionEvents` listener interface. Either or both of the ``execute()`` and ``cursor_execute()`` may be implemented to intercept compiled statement and cursor level executions, e.g.:: class MyProxy(ConnectionProxy): def execute(self, conn, execute, clauseelement, *multiparams, **params): print "compiled statement:", clauseelement return execute(clauseelement, *multiparams, **params) def cursor_execute(self, execute, cursor, statement, parameters, context, executemany): print "raw statement:", statement return execute(cursor, statement, parameters, context) The ``execute`` argument is a function that will fulfill the default execution behavior for the operation. The signature illustrated in the example should be used. The proxy is installed into an :class:`~sqlalchemy.engine.Engine` via the ``proxy`` argument:: e = create_engine('someurl://', proxy=MyProxy()) có‡‡ —gd¢}|D]W}tt|¦«}t‰|¦«}tj||¦«stjd|›d|›d�¦«ŒXˆfd„}t j|d|¦«ˆfd„}t j|d|¦«d „Š ˆ fd „} t j|d | ‰j¦«¦«t j|d | ‰j¦«¦«t j|d | ‰j ¦«¦«t j|d| ‰j ¦«¦«t j|d| ‰j ¦«¦«t j|d| ‰j ¦«¦«t j|d| ‰j ¦«¦«t j|d| ‰j¦«¦«t j|d| ‰j¦«¦«t j|d| ‰j¦«¦«dS)N) ÚexecuteÚcursor_executeÚbeginÚrollbackÚcommitÚ savepointÚrollback_savepointÚrelease_savepointÚbegin_twophaseÚprepare_twophaseÚrollback_twophaseÚcommit_twophasezConnectionProxy.zž is deprecated. The ConnectionProxy class will be removed in a future release. Please transition to the @event interface, using @event.listens_for(Engine, 'r có0•—d„}‰j|||g|¢Ri|¤ŽS)Ncó —|||fS©Nr)Ú clauseelementÚ multiparamsÚparamss rÚexecute_wrapperzOConnectionProxy._adapt_listener..adapt_execute..execute_wrapperïs€Ø$ k°6Ð9Ð9r)r/)Úconnr>r?r@rArs €rÚ adapt_executez6ConnectionProxy._adapt_listener..adapt_executeîsLø€ð :ð :ð :ð$�8Ô#Ø�o }ðØ7BðððØFLððð rÚbefore_executecó>•—d„}‰ ||||||¦«S)Ncó —||fSr=r)ÚcursorÚ statementÚ parametersÚcontexts rrAzVConnectionProxy._adapt_listener..adapt_cursor_execute..execute_wrapperûs €Ø  *Ð,Ð,r)r0)rBrGrHrIrJÚ executemanyrArs €rÚadapt_cursor_executez=ConnectionProxy._adapt_listener..adapt_cursor_executeøs>ø€ð -ð -ð -ð×*Ò*ØØØØØØñ ôð rÚbefore_cursor_executecó—dSr=r)ÚargÚkws rÚdo_nothing_callbackz.do_nothing_callback s€Ø ˆDrcó<•‡—ˆˆfd„}tj|‰¦«S)Ncó"•—‰|‰g|¢Ri|¤ŽdSr=r)rBrOrPrQÚfns €€rÚgozCConnectionProxy._adapt_listener..adapt_listener..go s,ø€Ø��4Ð,Ð9¨sÐ9Ð9Ð9°bÐ9Ð9Ð9Ð9Ð9r)rÚupdate_wrapper)rTrUrQs` €rÚadapt_listenerz7ConnectionProxy._adapt_listener..adapt_listener s7øø€ð :ð :ð :ð :ð :ð :õÔ& r¨2Ñ.Ô.Ð .rr1r2r3r4r5r6r7r8r9r:)rr-rrrrrr1r2r3r4r5r6r7r8r9r:) rrrr rrrrCrLrWrQs ` @rrzConnectionProxy._adapt_listenerÑs£øø€ð  ð  ð  ˆðð ð ˆDÝ�o¨tÑ4Ô4ˆGݘh¨Ñ-Ô-ˆGåÔ*¨7°GÑ<Ô<ð ÝÔ$Ð$ðBFÀÀÀtÀtÀtðMñôðøð ð ð ð ð õ Œ �TÐ+¨]Ñ;Ô;Ð;ð ð ð ð ð õ Œ �TÐ2Ð4HÑIÔIÐIð ð ð ð /ð /ð /ð /ð /õ Œ �T˜7 N N°8´>Ñ$BÔ$BÑCÔCÐCÝ Œ �T˜: ~ ~°hÔ6GÑ'HÔ'HÑIÔIÐIÝ Œ �T˜8 ^ ^°H´OÑ%DÔ%DÑEÔEÐEÝ Œ �T˜;¨¨°xÔ7IÑ(JÔ(JÑKÔKÐKÝ Œ Ø Ø Ø ˆN˜8Ô6Ñ 7Ô 7ñ ô ð õ Œ Ø Ø Ø ˆN˜8Ô5Ñ 6Ô 6ñ ô ð õ Œ Ø Ð" N N°8Ô3JÑ$KÔ$Kñ ô ð õ Œ Ø Ð$ n n°XÔ5NÑ&OÔ&Oñ ô ð õ Œ Ø Ø Ø ˆN˜8Ô5Ñ 6Ô 6ñ ô ð õ Œ Ø Ð# ^ ^°HÔ4LÑ%MÔ%Mñ ô ð ð ð rcó—||g|¢Ri|¤ŽS)z&Intercept high level execute() events.r)rrBr/r>r?r@s rr/zConnectionProxy.execute/s$€ðˆw�}Ð= {Ð=Ð=Ð=°fÐ=Ð=Ð=rcó—|||||¦«S)z,Intercept low-level cursor execute() events.r)rr/rGrHrIrJrKs rr0zConnectionProxy.cursor_execute4s€ð ˆw�v˜y¨*°gÑ>Ô>Ð>rcó—|¦«S)zIntercept begin() events.r)rrBr1s rr1zConnectionProxy.begin;s€ðˆu‰wŒwˆrcó—|¦«S)zIntercept rollback() events.r)rrBr2s rr2zConnectionProxy.rollback@s€ðˆx‰zŒzÐrcó—|¦«S)zIntercept commit() events.r)rrBr3s rr3zConnectionProxy.commitEs€ðˆv‰xŒxˆrNcó—||¬¦«S)zIntercept savepoint() events.)Únamer)rrBr4r^s rr4zConnectionProxy.savepointJs€ðˆy˜dÐ#Ñ#Ô#Ð#rcó—|||¦«S)z&Intercept rollback_savepoint() events.r)rrBr5r^rJs rr5z"ConnectionProxy.rollback_savepointOs€ð"Ð! $¨Ñ0Ô0Ð0rcó—|||¦«S)z%Intercept release_savepoint() events.r)rrBr6r^rJs rr6z!ConnectionProxy.release_savepointTs€ð!Ð   wÑ/Ô/Ð/rcó—||¦«S)z"Intercept begin_twophase() events.r)rrBr7Úxids rr7zConnectionProxy.begin_twophaseYs€ðˆ~˜cÑ"Ô"Ð"rcó—||¦«S)z$Intercept prepare_twophase() events.r)rrBr8rbs rr8z ConnectionProxy.prepare_twophase^s€ð РÑ$Ô$Ð$rcó—|||¦«S)z%Intercept rollback_twophase() events.r)rrBr9rbÚ is_prepareds rr9z!ConnectionProxy.rollback_twophasecs€ð!Ð   kÑ2Ô2Ð2rcó—|||¦«S)z#Intercept commit_twophase() events.r)rrBr:rbres rr:zConnectionProxy.commit_twophasehs€ðˆ˜s KÑ0Ô0Ð0rr=)r'r(r)r*r+rr/r0r1r2r3r4r5r6r7r8r9r:rrrr-r-®s÷€€€€€ð ð ðDð[ ð[ ñ„[ð[ ðz>ð>ð>ð ?ð?ð?ðððð ððð ððð $ð$ð$ð$ð 1ð1ð1ð 0ð0ð0ð #ð#ð#ð %ð%ð%ð 3ð3ð3ð 1ð1ð1ð1ð1rr-N)r*ÚrrÚobjectrr-rrrúris¦ðð ð ðÐÐÐÐÐØÐÐÐÐÐðS ðS ðS ðS ðS �6ñS ôS ðS ðl}1ð}1ð}1ð}1ð}1�fñ}1ô}1ð}1ð}1ð}1r