/opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/pool/__pycache__
NameSizeModeActions
base.cpython-311.pyc434090644editdlrm
dbapi_proxy.cpython-311.pyc69580644editdlrm
impl.cpython-311.pyc227630644editdlrm
__init__.cpython-311.pyc14950644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/pool/__pycache__/base.cpython-311.pyc (43409B)
§ �—Øgqãóf—dZddlmZddlZddlZddlmZddlmZddlmZddlm Z dd lm Z dd l m Z e j d ¦«Z e j d ¦«Ze j d ¦«ZGd„de¦«ZGd„de j¦«ZGd„de¦«Z dd„Ze¦«ZGd„de¦«ZdS)z'Base constructs for connection pools. é)ÚdequeNé)Úevent)Úexc)Ú interfaces)Úlog)Úutil)Ú threadingÚreset_rollbackÚ reset_commitÚ reset_nonecó*—eZdZdZd„Zd„Zd„Zd„ZdS)Ú _ConnDialectzýpartial implementation of :class:`.Dialect` which provides DBAPI connection methods. When a :class:`_pool.Pool` is combined with an :class:`_engine.Engine`, the :class:`_engine.Engine` replaces this with its own :class:`.Dialect`. có.—| ¦«dS©N)Úrollback©ÚselfÚdbapi_connections úh/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/pool/base.pyÚ do_rollbackz_ConnDialect.do_rollback)s€Ø×!Ò!Ñ#Ô#Ð#Ð#Ð#ócó.—| ¦«dSr)Úcommitrs rÚ do_commitz_ConnDialect.do_commit,s€Ø×ÒÑ!Ô!Ð!Ð!Ð!rcó.—| ¦«dSr)Úclosers rÚdo_closez_ConnDialect.do_close/s€Ø×ÒÑ Ô Ð Ð Ð rcó —td¦«‚)NzJThe ping feature requires that a dialect is passed to the connection pool.©ÚNotImplementedErrorrs rÚdo_pingz_ConnDialect.do_ping2s€Ý!ð -ñ ô ð rN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr"©rrrrsZ€€€€€ððð$ð$ð$ð"ð"ð"ð!ð!ð!ð ð ð ð ð rrcó&—eZdZdZe¦«Zejdd¬¦« dd „¦«Ze d „¦«Z e j d „¦«Z d „Z d „Z ejdd¦«d„¦«Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdS)ÚPoolz)Abstract base class for connection pools.)z1.3zkThe :paramref:`_pool.Pool.use_threadlocal` parameter is deprecated and will be removed in a future release.)ú0.7z¹:class:`.PoolListener` is deprecated in favor of the :class:`_events.PoolEvents` listener interface. The :paramref:`_pool.Pool.listeners` parameter will be removed in a future release.)Úuse_threadlocalÚ listenerséÿÿÿÿNFTc ó4—|r|x|_|_nd|_tj||¬¦«t j¦«|_||_||_d|_ ||_ | |_ tj  |tddgt gd¢t"dgidd ¬ ¦«|_||_| r|j | d ¬ ¦«| r| |_|r|D]\} } t/j|| | ¦«Œ|r|D]}| |¦«ŒdSdS) a- Construct a Pool. :param creator: a callable function that returns a DB-API connection object. The function will be called with parameters. :param recycle: If set to a value other than -1, number of seconds between connection recycling, which means upon checkout, if this timeout is surpassed the connection will be closed and replaced with a newly opened connection. Defaults to -1. :param logging_name: String identifier which will be used within the "name" field of logging records generated within the "sqlalchemy.pool" logger. Defaults to a hexstring of the object's id. :param echo: if True, the connection pool will log informational output such as when connections are invalidated as well as when connections are recycled to the default log handler, which defaults to ``sys.stdout`` for output.. If set to the string ``"debug"``, the logging will include pool checkouts and checkins. The :paramref:`_pool.Pool.echo` parameter can also be set from the :func:`_sa.create_engine` call by using the :paramref:`_sa.create_engine.echo_pool` parameter. .. seealso:: :ref:`dbengine_logging` - further detail on how to configure logging. :param use_threadlocal: If set to True, repeated calls to :meth:`connect` within the same application thread will be guaranteed to return the same connection object that is already checked out. This is a legacy use case and the flag has no effect when using the pool with a :class:`_engine.Engine` object. :param reset_on_return: Determine steps to take on connections as they are returned to the pool. reset_on_return can have any of these values: * ``"rollback"`` - call rollback() on the connection, to release locks and transaction resources. This is the default value. The vast majority of use cases should leave this value set. * ``True`` - same as 'rollback', this is here for backwards compatibility. * ``"commit"`` - call commit() on the connection, to release locks and transaction resources. A commit here may be desirable for databases that cache query plans if a commit is emitted, such as Microsoft SQL Server. However, this value is more dangerous than 'rollback' because any data changes present on the transaction are committed unconditionally. * ``None`` - don't do anything on the connection. This setting should generally only be made on a database that has no transaction support at all, namely MySQL MyISAM; when used on this backend, performance can be improved as the "rollback" call is still expensive on MySQL. It is **strongly recommended** that this setting not be used for transaction-supporting databases in conjunction with a persistent pool such as :class:`.QueuePool`, as it opens the possibility for connections still in a transaction to be idle in the pool. The setting may be appropriate in the case of :class:`.NullPool` or special circumstances where the connection pool in use is not being used to maintain connection lifecycle. * ``False`` - same as None, this is here for backwards compatibility. :param events: a list of 2-tuples, each of the form ``(callable, target)`` which will be passed to :func:`.event.listen` upon construction. Provided here so that event listeners can be assigned via :func:`_sa.create_engine` before dialect-level listeners are applied. :param listeners: A list of :class:`.PoolListener`-like objects or dictionaries of callables that receive events when DB-API connections are created, checked out and checked in to the pool. :param dialect: a :class:`.Dialect` that will handle the job of calling rollback(), close(), or commit() on DBAPI connections. If omitted, a built-in "stub" dialect is used. Applications that make use of :func:`_sa.create_engine` should not use this parameter as it is handled by the engine creation strategy. .. versionadded:: 1.1 - ``dialect`` is now a public parameter to the :class:`_pool.Pool`. :param pre_ping: if True, the pool will emit a "ping" (typically "SELECT 1", but is dialect-specific) on the connection upon checkout, to test if the connection is alive or not. If not, the connection is transparently re-connected and upon success, all other pooled connections established prior to that timestamp are invalidated. Requires that a dialect is passed as well to interpret the disconnection error. .. versionadded:: 1.2 N)ÚechoflagrrT)ÚnoneNFrÚreset_on_returnF)Úresolve_symbol_names)Úonly_propagate)Ú logging_nameÚ_orig_logging_namerÚinstance_loggerr ÚlocalÚ _threadconnsÚ_creatorÚ_recycleÚ_invalidate_timeÚ_use_threadlocalÚ _pre_pingr ÚsymbolÚparse_user_argumentr r r Ú_reset_on_returnÚechoÚdispatchÚ_updateÚ_dialectrÚlistenÚ add_listener)rÚcreatorÚrecyclerAr+r4r1r,ÚeventsÚdialectÚpre_pingÚ _dispatchÚfnÚtargetÚls rÚ__init__z Pool.__init__?sp€ðH ð +Ø:FÐ FˆDÔ  Ô 7Ð 7à&*ˆDÔ #å Ô˜D¨4Ð0Ñ0Ô0Ð0Ý%œOÑ-Ô-ˆÔ؈Œ ؈Œ Ø !ˆÔØ /ˆÔØ!ˆŒÝ $¤ × ?Ò ?Ø å ¨TÐ 2ÝÐ1Ð1Ð1ݘx˜jð ð Ø!&ð!@ñ ! ô ! ˆÔðˆŒ à ð CØ ŒM× !Ò ! )¸EÐ !Ñ BÔ BÐ BØ ð $Ø#ˆDŒMØ ð /Ø$ð /ð /‘ ��FÝ” ˜T 6¨2Ñ.Ô.Ð.Ð.Ø ð %Øð %ð %�Ø×!Ò! !Ñ$Ô$Ð$Ð$ð %ð %ð %ð %rcó—|jdS©Nr9)Ú__dict__©rs rr9z Pool._creatorçs€àŒ}˜ZÔ(Ð(rcóN—||jd<| |¦«|_dSrR)rSÚ_should_wrap_creatorÚ_invoke_creator)rrGs rr9z Pool._creatorës*€à$+ˆŒ �jÑ!Ø#×8Ò8¸ÑAÔAˆÔÐÐrcó&‡— tj|jd¬¦«}n#t$rˆfd„cYSwxYw|ddurt |d¦«pd}t |d¦«|z }|d|dfdgdfkr‰S|d kr‰Sˆfd „S) zlDetect if creator accepts a single argument, or is sent as a legacy style no-arg function. T)Úno_selfcó•—‰¦«Srr'©ÚcrecrGs €rúz+Pool._should_wrap_creator..ùó ø€  ¡ ¤ €réNrÚconnection_recordrécó•—‰¦«Srr'r[s €rr]z+Pool._should_wrap_creator..r^r)r Úget_callable_argspecr9Ú TypeErrorÚlen)rrGÚargspecÚ defaultedÚ positionalss ` rrVzPool._should_wrap_creatorðsÒø€ð  *ÝÔ/°´ ÀtÐLÑLÔLˆGˆGøÝð *ð *ð *Ø)Ð)Ð)Ð)Ð )Ð )Ð )ð *øøøð˜A”J dÐ*Ð>­s°7¸1´:©¬ÐCÀ!ˆ ݘ' !œ*‘o”o¨ Ñ1ˆ ð �AŒJ˜ œ Ð #Ð)<Ð(=¸wÐ'GÒ GÐ G؈Nà ˜AÒ Ð ØˆNð*Ð)Ð)Ð)Ð )s ƒŸ1°1cóΗ|j d|¦« |j |¦«dS#t$r!|j d|d¬¦«YdSwxYw)NzClosing connection %rzException closing connection %rT©Úexc_info)ÚloggerÚdebugrDrÚ ExceptionÚerror)rÚ connections rÚ_close_connectionzPool._close_connection sŒ€Ø Œ ×ÒÐ1°:Ñ>Ô>Ð>ð Ø ŒM× "Ò " :Ñ .Ô .Ð .Ð .Ð .øÝð ð ð Ø ŒK× Ò Ø1°:Èð ñ ô ð ð ð ð ð øøøs�9¹'A$Á#A$r*z¡The :meth:`_pool.Pool.add_listener` method is deprecated and will be removed in a future release. Please use the :class:`_events.PoolEvents` listener interface.cóF—tj ||¦«dS)aAdd a :class:`.PoolListener`-like object to this pool. ``listener`` may be an object that implements some or all of PoolListener, or a dictionary of callables containing implementations of some or all of the named methods in PoolListener. N)rÚ PoolListenerÚ_adapt_listener)rÚlisteners rrFzPool.add_listeners#€õ Ô×/Ò/°°hÑ?Ô?Ð?Ð?Ð?rcó6—t |¦«S)a®Produce a DBAPI connection that is not referenced by any thread-local context. This method is equivalent to :meth:`_pool.Pool.connect` when the :paramref:`_pool.Pool.use_threadlocal` flag is not set to True. When :paramref:`_pool.Pool.use_threadlocal` is True, the :meth:`_pool.Pool.unique_connection` method provides a means of bypassing the threadlocal context. )Ú_ConnectionFairyÚ _checkoutrTs rÚunique_connectionzPool.unique_connection$s€õ ×)Ò)¨$Ñ/Ô/Ð/rcó —t|¦«S)z6Called by subclasses to create a new ConnectionRecord.)Ú_ConnectionRecordrTs rÚ_create_connectionzPool._create_connection2s€õ! Ñ&Ô&Ð&rcóÔ—t|dd¦«}|r|j|jkrtj¦«|_|r(t|dd¦«r| |¦«dSdSdS)ašMark all connections established within the generation of the given connection as invalidated. If this pool's last invalidate time is before when the given connection was created, update the timestamp til now. Otherwise, no action is performed. Connections with a start time prior to this pool's invalidation time will be recycled upon next checkout. Ú_connection_recordNÚis_validF)Úgetattrr;Ú starttimeÚtimeÚ invalidate)rrpÚ exceptionÚ_checkinÚrecs rÚ _invalidatezPool._invalidate7s„€õ�jÐ"6¸Ñ=Ô=ˆØð 0�dÔ+¨c¬mÒ;Ð;Ý$(¤I¡K¤KˆDÔ !Ø ð -�  ¨J¸Ñ>Ô>ð -Ø × !Ò ! )Ñ ,Ô ,Ð ,Ð ,Ð ,ð -ð -ð -ð -rcó—t¦«‚)a"Return a new :class:`_pool.Pool`, of the same class as this one and configured with identical creation arguments. This method is used in conjunction with :meth:`dispose` to close out an entire :class:`_pool.Pool` and create a new one in its place. r rTs rÚrecreatez Pool.recreateHs€õ"Ñ#Ô#Ð#rcó—t¦«‚)zùDispose of this pool. This method leaves the possibility of checked-out connections remaining open, as it only affects connections that are idle in the pool. .. seealso:: :meth:`Pool.recreate` r rTs rÚdisposez Pool.disposeTs€õ"Ñ#Ô#Ð#rcó—|jst |¦«S |j ¦«}|�| ¦«Sn#t $rYnwxYwt ||j¦«S)zÈReturn a DBAPI connection from the pool. The connection is instrumented such that when its ``close()`` method is called, the connection will be returned to the pool. )r<rwrxr8ÚcurrentÚ_checkout_existingÚAttributeError©rr†s rÚconnectz Pool.connectcs—€ðÔ$ð 4Ý#×-Ò-¨dÑ3Ô3Ð 3ð 0ØÔ#×+Ò+Ñ-Ô-ˆCðˆØ×-Ò-Ñ/Ô/Ð/ðøõð ð ð Ø ˆDð øøøõ  ×)Ò)¨$°Ô0AÑBÔBÐBs£AÁ A ÁA cóp—|jr |j`n#t$rYnwxYw| |¦«dS)zºGiven a _ConnectionRecord, return it to the :class:`_pool.Pool`. This method is called when an instrumented DBAPI connection has its ``close()`` method called. N)r<r8r�r�Ú_do_return_conn)rÚrecords rÚ _return_connzPool._return_connxsZ€ð Ô ð ð ØÔ%Ð-Ð-øÝ!ð ð ð Ø�ð øøøà ×Ò˜VÑ$Ô$Ð$Ð$Ð$s ‰‘ �có—t¦«‚)z7Implementation for :meth:`get`, supplied by subclasses.r rTs rÚ_do_getz Pool._do_get†ó€õ"Ñ#Ô#Ð#rcó—t¦«‚)z?Implementation for :meth:`return_conn`, supplied by subclasses.r )rÚconns rr“zPool._do_return_conn‹r˜rcó—t¦«‚rr rTs rÚstatusz Pool.status�s€Ý!Ñ#Ô#Ð#r) r-NFNTNNNFN)NT)r#r$r%r&rrDr Údeprecated_paramsrPÚpropertyr9ÚsetterrVrqÚ deprecatedrFryr|r‡r‰r‹r‘r•r—r“rœr'rrr)r)9s·€€€€€à3Ð3àˆ|‰~Œ~€Hà€TÔð ð  ð ñ ô ð"Ø ØØØØØØØØðX%ðX%ðX%ñ ô ðX%ðtð)ð)ñ„Xð)ð„_ðBðBñ„_ðBð*ð*ð*ð4ððð€T„_Ø ð :ñôð @ð@ñ ôð @ð 0ð 0ð 0ð'ð'ð'ð -ð-ð-ð-ð" $ð $ð $ð $ð $ð $ðCðCðCð* %ð %ð %ð$ð$ð$ð $ð$ð$ð $ð$ð$ð$ð$rr)cóÞ—eZdZdZdd„ZdZdZdZ dZe j d„¦«Z e j d„¦«Z e d„¦«Zd „Zdd „Zed „¦«Zed „¦«Zd„Zdd„Zd„Zd„Zdd„ZdS)r{aÁInternal object which maintains an individual DBAPI connection referenced by a :class:`_pool.Pool`. The :class:`._ConnectionRecord` object always exists for any particular DBAPI connection whether or not that DBAPI connection has been "checked out". This is in contrast to the :class:`._ConnectionFairy` which is only a public facade to the DBAPI connection while it is checked out. A :class:`._ConnectionRecord` may exist for a span longer than that of a single DBAPI connection. For example, if the :meth:`._ConnectionRecord.invalidate` method is called, the DBAPI connection associated with this :class:`._ConnectionRecord` will be discarded, but the :class:`._ConnectionRecord` may be used again, in which case a new DBAPI connection is produced when the :class:`_pool.Pool` next uses this record. The :class:`._ConnectionRecord` is delivered along with connection pool events, including :meth:`_events.PoolEvents.connect` and :meth:`_events.PoolEvents.checkout`, however :class:`._ConnectionRecord` still remains an internal object whose API and internals may change. .. seealso:: :class:`._ConnectionFairy` Tcój—||_|r| d¬¦«t¦«|_dS)NT)Úfirst_connect_check)Ú_ConnectionRecord__poolÚ_ConnectionRecord__connectrÚfinalize_callback)rÚpoolr‘s rrPz_ConnectionRecord.__init__µs7€ØˆŒ Ø ð 5Ø �NŠN¨tˆNÑ 4Ô 4Ð 4Ý!&¡¤ˆÔÐÐrNrcó—iS)a`The ``.info`` dictionary associated with the DBAPI connection. This dictionary is shared among the :attr:`._ConnectionFairy.info` and :attr:`_engine.Connection.info` accessors. .. note:: The lifespan of this dictionary is linked to the DBAPI connection itself, meaning that it is **discarded** each time the DBAPI connection is closed and/or invalidated. The :attr:`._ConnectionRecord.record_info` dictionary remains persistent throughout the lifespan of the :class:`._ConnectionRecord` container. r'rTs rÚinfoz_ConnectionRecord.infoÊs €ð"ˆ rcó—iS)a½An "info' dictionary associated with the connection record itself. Unlike the :attr:`._ConnectionRecord.info` dictionary, which is linked to the lifespan of the DBAPI connection, this dictionary is linked to the lifespan of the :class:`._ConnectionRecord` container itself and will remain persistent throughout the life of the :class:`._ConnectionRecord`. .. versionadded:: 1.1 r'rTs rÚ record_infoz_ConnectionRecord.record_infoÝs €ðˆ rc󇇇—‰ ¦«Š ‰ ¦«}nW#t$rJ}tj¦«5‰ |¦«ddd¦«n #1swxYwYYd}~nd}~wwxYw‰ ¦«Št|‰‰¦«}tj |ˆˆˆfd„¦«‰_ t  ‰¦«‰r‰j  d|¦«|S)Ncó8•—totd‰‰|‰¦«Sr)Ú_finalize_fairy)ÚrefrAr§r†s €€€rr]z,_ConnectionRecord.checkout..ùs"ø€�ð<Ý  c¨4°°dÑ;Ô;ðrz#Connection %r checked out from pool)r—Úget_connectionrnr Ú safe_reraiseÚ_checkin_failedÚ_should_log_debugrwÚweakrefr¯Ú fairy_refÚ_refsÚaddrlrm)Úclsr§rÚerrÚfairyrAr†s ` @@rÚcheckoutz_ConnectionRecord.checkoutísaøøø€à�lŠl‰nŒnˆð )Ø"×1Ò1Ñ3Ô3Ð Ð øÝð )ð )ð )ÝÔ"Ñ$Ô$ð )ð )Ø×#Ò# CÑ(Ô(Ð(ð )ð )ð )ñ )ô )ð )ð )ð )ð )ð )ð )øøøð )ð )ð )ð )øøøøøøøøøð )øøøð×%Ò%Ñ'Ô'ˆÝ Ð!1°3¸Ñ=Ô=ˆÝœ Ø ð <ð <ð <ð <ð <ð <ñ ô ˆŒ õ � Š �#‰ŒˆØ ð Ø ŒK× Ò Ø5Ð7Gñ ô ð ðˆ s8™.® B¸A=Á A-Á! A=Á-A1 Á1A=Á4A1 Á5A=Á=Bcó^—| |¬¦«| d¬¦«dS)N©ÚeT)Ú _no_fairy_ref)rƒÚcheckin)rr¹s rr²z!_ConnectionRecord._checkin_faileds0€Ø �Š˜#ˆÑÔÐØ � Š  4ˆ Ñ(Ô(Ð(Ð(Ð(rFcóP—|j€|stjd|z¦«dSd|_|j}|j}|jr+|j ¦«}||¦«|j°+|jjr|j ||¦«|  |¦«dS)NzDouble checkin attempted on %s) rµr Úwarnrpr¤r¦ÚpoprBrÀr•)rr¿rpr§Ú finalizers rrÀz_ConnectionRecord.checkins¼€Ø Œ>Ð !¨-Ð !Ý ŒIÐ6¸Ñ=Ñ >Ô >Ð >Ø ˆF؈ŒØ”_ˆ ØŒ{ˆØÔ$ð "ØÔ.×2Ò2Ñ4Ô4ˆIØ ˆI�jÑ !Ô !Ð !ðÔ$ð "ð Œ=Ô ð 4Ø ŒM× !Ò ! *¨dÑ 3Ô 3Ð 3Ø ×Ò˜$ÑÔÐÐÐrcó—|jduSr)rµrTs rÚin_usez_ConnectionRecord.in_uses€àŒ~ TÐ)Ð)rcó—|jSr)r�rTs rÚlast_connect_timez#_ConnectionRecord.last_connect_times €àŒ~Ðrcó@—|j�| ¦«dSdSr)rpÚ_ConnectionRecord__closerTs rrz_ConnectionRecord.closes#€Ø Œ?Ð &Ø �LŠL‰NŒNˆNˆNˆNð 'Ð &rcóê—|j€dS|r'|jj |j||¦«n&|jj |j||¦«|�7|jj d|rdnd|j|jj|¦«n*|jj d|rdnd|j¦«|rtj ¦«|_ dS|  ¦«d|_dS)a­Invalidate the DBAPI connection held by this :class:`._ConnectionRecord`. This method is called for all connection invalidations, including when the :meth:`._ConnectionFairy.invalidate` or :meth:`_engine.Connection.invalidate` methods are called, as well as when any so-called "automatic invalidation" condition occurs. :param e: an exception object indicating a reason for the invalidation. :param soft: if True, the connection isn't closed; instead, this connection will be recycled on next checkout. .. versionadded:: 1.0.3 .. seealso:: :ref:`pool_connection_invalidation` Nz*%sInvalidate connection %r (reason: %s:%s)zSoft Úz%sInvalidate connection %r) rpr¤rBÚsoft_invalidaterƒrlr©Ú __class__r#r‚Ú_soft_invalidate_timerÊ©rr¾Úsofts rrƒz_ConnectionRecord.invalidate!s €ð, Œ?Ð "Ø ˆFØ ð FØ ŒKÔ × 0Ò 0°´À$ÈÑ JÔ JÐ JÐ Jà ŒKÔ × +Ò +¨D¬O¸TÀ1Ñ EÔ EÐ EØ ˆ=Ø ŒKÔ × #Ò #Ø<ØÐ'�� Rؔؔ Ô$Øñ  ô ð ð ð ŒKÔ × #Ò #Ø,ØÐ'�� RØ”ñ ô ð ð ð #Ý)-¬©¬ˆDÔ &Ð &Ð &à �LŠL‰NŒNˆNØ"ˆDŒOˆOˆOrcó®—d}|j€.|j ¦«| ¦«nÕ|jjdkrQt j¦«|jz |jjkr(|jj d|j¦«d}nt|jj |jkr(|jj d|j¦«d}n7|j |jkr'|jj d|j¦«d}|rA|  ¦«|j ¦«| ¦«|jS)NFr-z)Connection %r exceeded timeout; recyclingTz=Connection %r invalidated due to pool invalidation; recyclingzCConnection %r invalidated due to local soft invalidation; recycling) rpr©Úclearr¥r¤r:r‚r�rlr;rÏrÊ)rrHs rr°z _ConnectionRecord.get_connectionQsO€Øˆð Œ?Ð "Ø ŒI�OŠOÑ Ô Ð Ø �NŠNÑ Ô Ð Ð à ŒKÔ  2Ò %Ð %Ý” ‘ ” ˜dœnÑ,¨t¬{Ô/CÒCÐCà ŒKÔ × #Ò #Ø;¸T¼_ñ ô ð ðˆGˆGØ Œ[Ô )¨D¬NÒ :Ð :Ø ŒKÔ × #Ò #ðà”ñ ô ð ð ˆGˆGØ Ô '¨$¬.Ò 8Ð 8Ø ŒKÔ × #Ò #ðà”ñ ô ð ð ˆGà ð Ø �LŠL‰NŒNˆNØ ŒI�OŠOÑ Ô Ð à �NŠNÑ Ô Ð ØŒÐrcóð—|j ¦«|jjjr%|jj |j|¦«|j |j¦«d|_dSr)r¦rÓr¤rBrrprqrTs rÚ__closez_ConnectionRecord.__close�sg€Ø Ô×$Ò$Ñ&Ô&Ð&Ø Œ;Ô Ô %ð >Ø ŒKÔ × &Ò & t¤¸Ñ =Ô =Ð =Ø Œ ×%Ò% d¤oÑ6Ô6Ð6؈Œˆˆrcód—|j}d|_ tj¦«|_| |¦«}|j d|¦«||_|r=|jj  |j¦«  |j|¦«|jj r"|j  |j|¦«dSdS#t$rW}tj¦«5|j d|¦«ddd¦«n#1swxYwYYd}~dSYd}~dSd}~wwxYw)NzCreated new connection %rzError on connect(): %s)r¤rpr‚r�rWrlrmrBÚ first_connectÚ for_modifyÚexec_once_unless_exceptionr‘rnr r±)rr£r§rpr¾s rÚ __connectz_ConnectionRecord.__connectˆs¥€ØŒ{ˆðˆŒð =Ý!œY™[œ[ˆDŒNØ×-Ò-¨dÑ3Ô3ˆJØ ŒK× Ò Ð9¸:Ñ FÔ FÐ FØ(ˆDŒOð #ð DØ” Ô+×6Ò6Ø”Mñôç,Ò,¨T¬_¸dÑCÔCÐCØŒ}Ô$ð =Ø” ×%Ò% d¤o°tÑ<Ô<Ð<Ð<Ð<ð =ð =øõð ?ð ?ð ?ÝÔ"Ñ$Ô$ð ?ð ?Ø” ×!Ò!Ð":¸AÑ>Ô>Ð>ð ?ð ?ð ?ñ ?ô ?ð ?ð ?ð ?ð ?ð ?ð ?øøøð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?ð ?øøøøð ?øøøs<�ACà D/ÃD*Ã+DÄ D*ÄD ÄD*ÄD ÄD*Ä*D/)T)F©NF)r#r$r%r&rPrµr�rprÏr Úmemoized_propertyr©r«Ú classmethodr»r²rÀržrÆrÈrrƒr°rÊr¥r'rrr{r{”sW€€€€€ððð>)ð)ð)ð)ð €Ià€Ià€JððÐà ÔððñÔðð$ Ôð ð ñÔð ðððñ„[ðð*)ð)ð)ð  ð  ð  ð  ðð*ð*ñ„Xð*ðððñ„Xððððð.#ð.#ð.#ð.#ð`.ð.ð.ð`ððð=ð=ð=ð=ð=ð=rr{có”—t |¦«|�|j|urdS|�J‚|j}|�ò|r|r|j d|¦« |pt |||¦«}|j|usJ‚| |¦«|s;|jj r|j  |¦«|  |¦«na#t$rT}|j  dd¬¦«|r|  |¬¦«t|t¦«s‚Yd}~nd}~wwxYw|r|j�| ¦«dSdSdS)zfCleanup for a :class:`._ConnectionFairy` whether or not it's already been garbage collected. Nz$Connection %r being returned to poolz!Exception during reset or similarTrjr½)r¶ÚdiscardrµrprlrmrwÚ_resetrBÚclose_detachedrqÚ BaseExceptionrorƒÚ isinstancernrÀ)rpr`r§r¯rArºr¾s rr®r®ŸsÒ€õ ‡M‚MÐ#Ñ$Ô$Ð$à €Ø Ô &¨cÐ 1Ð 1Ø ˆFØÐ!Ð!Ð!Ø&Ô1ˆ àÐØ ð  ð Ø ŒK× Ò Ø6¸ ñ ô ð ð ØðÕ-ØÐ-¨tñôˆEðÔ# zÐ1Ð1Ð1Ð1Ø �LŠL˜Ñ Ô Ð ð%ð 3Ø”=Ô/ð=Ø”M×0Ò0°Ñ<Ô<Ð<Ø×&Ò& zÑ2Ô2Ð2øøÝð ð ð Ø ŒK× Ò Ø3¸dð ñ ô ð ð!ð 2Ø!×,Ò,¨qÐ,Ñ1Ô1Ð1ݘa¥Ñ+Ô+ð Øð ð ð ð ð øøøøð  øøøðð$Ð.Ô8ÐDØ×!Ò!Ñ#Ô#Ð#Ð#Ð#ð$ð$ÐDÐDsÁA0Cà D$ÃA DÄD$cóÚ—eZdZdZd„ZdZ dZ dZ edd„¦«Z d„Z d„Z e Z d„Z ed„¦«Zed „¦«Zejd „¦«Zed „¦«Zdd „Zd„Zd„Zd„Zd„ZdS)rwabProxies a DBAPI connection and provides return-on-dereference support. This is an internal object used by the :class:`_pool.Pool` implementation to provide context management to a DBAPI connection delivered by that :class:`_pool.Pool`. The name "fairy" is inspired by the fact that the :class:`._ConnectionFairy` object's lifespan is transitory, as it lasts only for the length of a specific DBAPI connection being checked out from the pool, and additionally that as a transparent proxy, it is mostly invisible. .. seealso:: :class:`._ConnectionRecord` có0—||_||_||_dSr)rpr~Ú_echo)rrr`rAs rrPz_ConnectionFairy.__init__ås€Ø*ˆŒØ"3ˆÔ؈Œ ˆ ˆ rNcó†—|sCt |¦«}||_d|_|�t j|¦«|_|j€tj d¦«‚|xjdz c_|j js|j r |jdkr|Sd}|dk�rç |j r‚|j r |j  d|j¦«|j |j¦«}|s:|j r |j  d|j¦«tj¦«‚|j  |j|j|¦«|S#tj$�r}|jrN|j  d|¦«|j |¦«| ||d¬ ¦«n;|j  d |j|¦«|j |¦« |j ¦«|_n\#t2$rO}t5j¦«5|j |¦«ddd¦«n #1swxYwYYd}~nd}~wwxYw|dz}Yd}~nd}~wwxYw|dk�°ç|j  d ¦«| ¦«tj d¦«‚) NrzThis connection is closedrarzPool pre-ping on connection %sz;Pool pre-ping on connection %s failed, will invalidate poolzoDisconnection detected on checkout, invalidating all pooled connections prior to current timestamp (reason: %r)F)r…zVDisconnection detected on checkout, invalidating individual connection %s (reason: %r)z+Reconnection attempts exhausted on checkout)r{r»Ú_poolÚ_counterr´r¯r�rprÚInvalidRequestErrorrBr=rærlrmrDr"ÚInvalidatePoolErrorr~ÚDisconnectionErrorÚinvalidate_poolr©rƒr‡r°rnr r±r²)r¸r§Ú threadconnsrºÚattemptsÚresultr¾r¹s rrxz_ConnectionFairy._checkoutsu€àð 9Ý%×.Ò.¨tÑ4Ô4ˆEàˆEŒK؈EŒNàÐ&Ý&-¤k°%Ñ&8Ô&8� Ô#à Ô Ð #ÝÔ)Ð*EÑFÔFÐ FØ ˆŒ˜!шŒð” Ô&ð Ø/3¬~ð à Œ^˜qÒ Ð ØˆLðˆØ˜Šl‰lð/ Ø”>ð8Ø”{ðØœ ×)Ò)Ø<¸eÔ>Nñôðð"œ]×2Ò2°5Ô3CÑDÔD�FØ!ð8Ø œ;ðØ œK×-Ò-ð!7à %Ô 0ñôðõ "Ô5Ñ7Ô7Ð7à” ×&Ò&ØÔ$ eÔ&>Àñôðð� øÝÔ)ð ñ ð ØÔ$ð;Ø”K×$Ò$ð9ðñ ôðð Ô,×7Ò7¸Ñ:Ô:Ð:Ø×$Ò$ U¨A¸Ð$Ñ>Ô>Ð>Ð>à”K×$Ò$ðMàÔ(Øñ ôðð Ô,×7Ò7¸Ñ:Ô:Ð:ðFàÔ0×?Ò?ÑAÔAðÔ$Ð$øõ!ðFðFðFÝÔ*Ñ,Ô,ðFðFØÔ0×@Ò@ÀÑEÔEÐEðFðFðFñFôFðFðFðFðFðFðFøøøðFðFðFðFøøøøøøøøøðFøøøð˜A‘ ������øøøøð5 øøøð-˜Šl‰lðd Œ ×ÒÐFÑGÔGÐGØ ×ÒÑÔÐÝÔ%Ð&AÑBÔBÐBshÂB0E Å I7ÅBI2Ç-H È I2È I%ÈI È)IÉ I ÉI ÉI ÉI ÉI ÉI2É I%É%I2É2I7cóD—t |j|¬¦«S©N)rº)rwrxrèrTs rrŽz#_ConnectionFairy._checkout_existingWs€Ý×)Ò)¨$¬*¸DÐ)ÑAÔAÐArcót—t|j|j|jd|j|¬¦«d|_d|_dSrò)r®rpr~rèrærTs rr…z_ConnectionFairy._checkinZsK€ÝØ ŒOØ Ô #Ø ŒJØ Ø ŒJØð  ñ ô ð ðˆŒØ"&ˆÔÐÐrcóB—|jjr |j ||j¦«|jtur«|jr*|j d|j|j rdnd¦«|j rW|j j s0tj d¦«|j  |¦«dS|j  ¦«dS|j  |¦«dS|jt ur«|jr*|j d|j|j rdnd¦«|j rW|j j s0tj d¦«|j  |¦«dS|j  ¦«dS|j  |¦«dSdS)Nz"Connection %s rollback-on-return%sz , via agentrÌzlReset agent is not active. This should not occur unless there was already a connectivity error in progress.z Connection %s commit-on-return%s)rBÚresetr~r@r rærlrmrpÚ _reset_agentÚ is_activer rÂrDrrr rr)rr§s rràz_ConnectionFairy._resethsÖ€Ø Œ=Ô ð ?Ø ŒM× Ò   dÔ&=Ñ >Ô >Ð >Ø Ô ¥NÐ 2Ð 2ØŒzð Ø” ×!Ò!Ø8Ø”OØ%)Ô%6Ð>�M�M¸Bñôðð Ô ð 0ØÔ(Ô2ð1Ý”Ið<ñôðð ”M×-Ò-¨dÑ3Ô3Ð3Ð3Ð3àÔ%×.Ò.Ñ0Ô0Ð0Ð0Ð0à” ×)Ò)¨$Ñ/Ô/Ð/Ð/Ð/Ø Ô "¥lÐ 2Ð 2ØŒzð Ø” ×!Ò!Ø6Ø”OØ%)Ô%6Ð>�M�M¸Bñôðð Ô ð .ØÔ(Ô2ð/Ý”Ið<ñôðð ”M×+Ò+¨DÑ1Ô1Ð1Ð1Ð1àÔ%×,Ò,Ñ.Ô.Ð.Ð.Ð.à” ×'Ò'¨Ñ-Ô-Ð-Ð-Ð-ð%3Ð 2rcó—|jjSr)rèrlrTs rÚ_loggerz_ConnectionFairy._logger’s €àŒzÔ Ð rcó—|jduS)zbReturn True if this :class:`._ConnectionFairy` still refers to an active DBAPI connection.N)rprTs rrz_ConnectionFairy.is_valid–s€ð Œ dÐ*Ð*rcó—|jjS)ašInfo dictionary associated with the underlying DBAPI connection referred to by this :class:`.ConnectionFairy`, allowing user-defined data to be associated with the connection. The data here will follow along with the DBAPI connection including after it is returned to the connection pool and used again in subsequent instances of :class:`._ConnectionFairy`. It is shared with the :attr:`._ConnectionRecord.info` and :attr:`_engine.Connection.info` accessors. The dictionary associated with a particular DBAPI connection is discarded when the connection itself is discarded. )r~r©rTs rr©z_ConnectionFairy.info�s€ð"Ô&Ô+Ð+rcó,—|jr |jjSdS)aŸInfo dictionary associated with the :class:`._ConnectionRecord container referred to by this :class:`.ConnectionFairy`. Unlike the :attr:`._ConnectionFairy.info` dictionary, the lifespan of this dictionary is persistent across connections that are disconnected and/or invalidated within the lifespan of a :class:`._ConnectionRecord`. .. versionadded:: 1.1 N)r~r«rTs rr«z_ConnectionFairy.record_info°s €ð Ô "ð ØÔ*Ô6Ð 6à�4rFcóÄ—|j€tjd¦«dS|jr|j ||¬¦«|sd|_| ¦«dSdS)aÕMark this connection as invalidated. This method can be called directly, and is also called as a result of the :meth:`_engine.Connection.invalidate` method. When invoked, the DBAPI connection is immediately closed and discarded from further use by the pool. The invalidation mechanism proceeds via the :meth:`._ConnectionRecord.invalidate` internal method. :param e: an exception object indicating a reason for the invalidation. :param soft: if True, the connection isn't closed; instead, this connection will be recycled on next checkout. .. versionadded:: 1.0.3 .. seealso:: :ref:`pool_connection_invalidation` Nz.Can't invalidate an already-closed connection.)r¾rÑ)rpr rÂr~rƒr…rÐs rrƒz_ConnectionFairy.invalidateÂss€ð, Œ?Ð "Ý ŒIÐFÑ GÔ GÐ GØ ˆFØ Ô "ð ?Ø Ô #× .Ò .°¸Ð .Ñ >Ô >Ð >Øð Ø"ˆDŒOØ �MŠM‰OŒOˆOˆOˆOð ð rcó&—|jj|i|¤ŽS)z˜Return a new DBAPI cursor for the underlying connection. This method is a proxy for the ``connection.cursor()`` DBAPI method. )rpÚcursor)rÚargsÚkwargss rrÿz_ConnectionFairy.cursorás€ð&ˆtŒÔ% tÐ6¨vÐ6Ð6Ð6rcó,—t|j|¦«Sr)r€rp)rÚkeys rÚ __getattr__z_ConnectionFairy.__getattr__ês€Ý�t”¨Ñ,Ô,Ð,rcón—|j�«|j}t |¦«d|_d|_|j |j¦«|j ¦«|_d|_|jj j r)|jj   |j|¦«dSdSdS)a"Separate this connection from its Pool. This means that the connection will no longer be returned to the pool when closed, and will instead be literally closed. The containing ConnectionRecord is separated from the DB-API connection, and will create a new connection when next used. Note that any overall connection limiting constraints imposed by a Pool implementation may be violated after a detach, as the detached connection is removed from the pool's knowledge and control. N) r~r¶Úremoverµrprèr“r©ÚcopyrBÚdetachr�s rrz_ConnectionFairy.detachís±€ð Ô "Ð .ØÔ)ˆCÝ �LŠL˜Ñ Ô Ð Ø ˆCŒMØ!ˆCŒNà ŒJ× &Ò & tÔ'>Ñ ?Ô ?Ð ?Øœ ŸšÑ(Ô(ˆDŒIØ&*ˆDÔ #àŒzÔ"Ô)ð AØ” Ô#×*Ò*¨4¬?¸CÑ@Ô@Ð@Ð@Ð@ð /Ð .ð Að Arcóh—|xjdzc_|jdkr| ¦«dSdS)Nrar)rér…rTs rrz_ConnectionFairy.closes8€Ø ˆ Œ ˜Ñˆ Œ Ø Œ=˜AÒ Ð Ø �MŠM‰OŒOˆOˆOˆOð Ð r)NNrÛ)r#r$r%r&rPrpr~rörÝrxrŽr…Ú_closeràržrùrr rÜr©r«rƒrÿrrrr'rrrwrwÐsr€€€€€ððð&ððð €JØCàÐðð€Lðð"ðMCðMCðMCñ„[ðMCð^BðBðBð 'ð 'ð 'ð€Fð(.ð(.ð(.ðTð!ð!ñ„Xð!ðð+ð+ñ„Xð+ð  Ôð,ð,ñÔð,ð$ððñ„Xðð"ðððð>7ð7ð7ð-ð-ð-ðAðAðAð4ððððrrwr)r&Ú collectionsrr‚r´rÌrrrrr r r>r r r ÚobjectrÚ Identifiedr)r{r®Úsetr¶rwr'rrúrsÎððððÐÐÐÐÐØ € € € Ø€€€àÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐð�”Ð-Ñ.Ô.€ØˆtŒ{˜>Ñ*Ô*€ Ø ˆTŒ[˜Ñ &Ô &€ ð ð ð ð ð �6ñ ô ð ð6X$ðX$ðX$ðX$ðX$ˆ3Œ>ñX$ôX$ðX$ðv H=ðH=ðH=ðH=ðH=˜ñH=ôH=ðH=ðX;?ð+$ð+$ð+$ð+$ð\ ˆ‰Œ€ðzðzðzðzðz�vñzôzðzðzðzr