+
    ^eòjZ»  ã                  óØ  € ^ RI Ht ^ RIt^ RIHtHt ^ RIt^ RIt^ RIt^ RI	H
t
 ^ RIHtHtHt ^ RIt^ RIt^RIHt ^RIHt ^RIHt ^R	IHt ]P,                  ! ]4      t ! R
 R]P2                  4      t ! R R]4      t ! R R]P:                  ]RR7      t ! R R4      t ! R R4      t  ! R R4      t!R'RRR^
R^
RRRRRRR RR!RR"RR#RR$]PD                  R%]PF                  /R& llt$R# )(é    )ÚannotationsN)Ú	AwaitableÚCallable)ÚTracebackType)ÚAnyÚOptionalÚType)Úcompat©Ú
connection)Ú
exceptions)Úprotocolc                  ó2   a € ] tR t^tRtV 3R ltR tRtV ;t# )Ú_PoolConnectionHolderQueuez>Prefer live connections, with LIFO ordering within each group.c                	ó  <€ \        \        V P                  4      ^,
          RR4       FG  pV P                  V,          P                  4       '       g   K,  V P                  P	                  V4      u # 	  \
        SV `  4       # ©é   éÿÿÿÿ)ÚrangeÚlenÚ_queueÚis_connectedÚpopÚsuperÚ_get)ÚselfÚiÚ	__class__s   & €Úƒ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/asyncpg/pool.pyr   Ú_PoolConnectionHolderQueue._get   s\   ø€ Ü”s˜4Ÿ;™;Ó'¨!Õ+¨R°Ö4ˆAØ�{‰{˜1�~×*Ñ*×,Ô,Ø—{‘{—‘ qÓ)Ò)ñ 5ô ‰w‰|‹~Ðó    c                	ó@  € \        \        V P                  4      ^,
          RR4       Fd  pV P                  V,          P                  4       '       d   K,  V P                  P	                  V4      pV P                  V P                  4       Vu # 	  \        P                  hr   )	r   r   r   r   r   Ú_wakeup_nextÚ_puttersÚasyncioÚ
QueueEmpty)r   r   Úholders   &  r   Úget_disconnected_nowaitÚ2_PoolConnectionHolderQueue.get_disconnected_nowait%   sq   € Ü”s˜4Ÿ;™;Ó'¨!Õ+¨R°Ö4ˆAØ—;‘;˜q•>×.Ñ.×0Ô0ØŸ™Ÿ™¨Ó+�Ø×!Ñ! $§-¡-Ô0Ø’ñ	 5ô
 × Ñ Ð r!   © )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r(   Ú__static_attributes__Ú__classcell__©r   s   @r   r   r      s   ø† ÙHõ÷!ð !r!   r   c                  óL   a € ] tR t^.tRR/R V 3R lllt]R R l4       tRtV ;t# )ÚPoolConnectionProxyMetaÚwrapFc          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )é   ÚnameÚstrÚbasesztuple[Type[Any], ...]Údctzdict[str, Any]r5   ÚboolÚreturnr4   r*   )Úformats   "r   Ú__annotate__Ú$PoolConnectionProxyMeta.__annotate__0   s<   € ÷ 7ñ 7àð7ð %ð7ð ð	7ð ð7ð 
!ñ7r!   c               	óì  <€ V'       dÝ   \        \        P                  4       F›  pVP                  R 4      '       g   WS9   d   K"  \	        \        P                  V4      p\
        P                  ! V4      '       g   KZ  \
        P                  ! V4      pV P                  WW4      p\        P                  ! W†4      pWƒV&   K�  	  RV9  d   \        P                  P                  VR&   \        S	V `5  WW#4      # )Ú_r/   )Údirr   Ú
ConnectionÚ
startswithÚgetattrÚinspectÚ
isfunctionÚiscoroutinefunctionÚ_wrap_connection_methodÚ	functoolsÚupdate_wrapperr/   r   Ú__new__)
Úmclsr8   r:   r;   r5   ÚattrnameÚmethÚiscoroutineÚwrapperr   s
   &&&&$    €r   rM   ÚPoolConnectionProxyMeta.__new__0   sÂ   ø€ ÷ Ü¤
× 5Ñ 5Ö6�Ø×&Ñ& s×+Ò+¨x¬Ùäœz×4Ñ4°hÓ?�Ü×)Ò)¨$×/Ò/Ùä%×9Ò9¸$Ó?�Ø×6Ñ6°xÓM�Ü#×2Ò2°7ÓA�Ø '�H“ñ 7ð  Ô#Ü!+×!6Ñ!6×!>Ñ!>��I‘ä‰w‰˜t¨5Ó6Ð6r!   c               ó$   € V ^8„  d   QhRRRRRR/# )r7   Ú	meth_namer9   rQ   r<   r=   zCallable[..., Any]r*   )r>   s   "r   r?   r@   L   s$   € ÷ ñ ØðØ%)ðà	ñr!   c                	óV   a € R  V 3R llpV'       d   \         P                  ! V4       V# )c               ó(   € V ^8„  d   QhRRRRRRRR/# )r7   r   r   ÚargsÚkwargsr=   r*   )r>   s   "r   r?   ÚEPoolConnectionProxyMeta._wrap_connection_method.<locals>.__annotate__O   s(   € ÷ 		4ñ 		4 #ð 		4¨cð 		4¸Sð 		4ÀSñ 		4r!   c                óÖ   <€ V P                   f&   \        P                  ! RP                  S4      4      h\	        V P                   P
                  S4      pV! V P                   .VO5/ VB # )NzJcannot call Connection.{}(): connection has been released back to the pool)Ú_conr   ÚInterfaceErrorr>   rF   r   )r   rX   rY   rP   rU   s   &*, €r   Úcall_con_methodÚHPoolConnectionProxyMeta._wrap_connection_method.<locals>.call_con_methodO   se   ø€ à�y‰yÒ Ü ×/Ò/ðDßDJÁFØ!óE#ó$ð $ô
 ˜4Ÿ9™9×.Ñ.°	Ó:ˆDÙ˜Ÿ	™	Ð3 DÒ3¨FÑ3Ð3r!   )r
   Úmarkcoroutinefunction)rU   rQ   r^   s   f& r   rJ   Ú/PoolConnectionProxyMeta._wrap_connection_methodK   s&   ø€ ÷		4ð 		4÷ Ü×(Ò(¨Ô9àÐr!   r*   )	r+   r,   r-   r.   rM   ÚstaticmethodrJ   r0   r1   r2   s   @r   r4   r4   .   s+   ø† ð7ð ÷7ò 7ð6 ôó ör!   r4   c                  óJ   € ] tR t^`tR	tR R ltR R ltR R ltR R ltR	t	R
# )ÚPoolConnectionProxyc               ó$   € V ^8„  d   QhRRRRRR/# )r7   r'   ÚPoolConnectionHolderÚconzconnection.Connectionr=   ÚNoner*   )r>   s   "r   r?   Ú PoolConnectionProxy.__annotate__f   s$   € ÷ ñ Ø*ðØ1Fðà	ñr!   c                	ó@   € W n         Wn        VP                  V 4       R # ©N)r\   Ú_holderÚ
_set_proxy)r   r'   rg   s   &&&r   Ú__init__ÚPoolConnectionProxy.__init__f   s   € ð Œ	ØŒØ�‰�tÖr!   c               ó    € V ^8„  d   QhRRRR/# )r7   Úattrr9   r=   r   r*   )r>   s   "r   r?   ri   m   s   € ÷ (ñ ( ð (¨ñ (r!   c                	ó.   € \        V P                  V4      # rk   )rF   r\   )r   rq   s   &&r   Ú__getattr__ÚPoolConnectionProxy.__getattr__m   s   € ä�t—y‘y $Ó'Ð'r!   c               ó   € V ^8„  d   QhRR/# )r7   r=   zOptional[connection.Connection]r*   )r>   s   "r   r?   ri   q   s   € ÷ ñ Ð8ñ r!   c                	ón   € V P                   f   R # V P                   R uqn         VP                  R 4       V# rk   )r\   rm   )r   rg   s   & r   Ú_detachÚPoolConnectionProxy._detachq   s/   € Ø�9‰9ÒÙàŸ™ DˆˆŒYØ�‰�tÔØˆ
r!   c               ó   € V ^8„  d   QhRR/# )r7   r=   r9   r*   )r>   s   "r   r?   ri   y   s   € ÷ Oñ O˜#ñ Or!   c                	óô   € V P                   f1   RP                  V P                  P                  \	        V 4      R7      # RP                  V P                  P                  V P                   \	        V 4      R7      # )Nz <{classname} [released] {id:#x}>)Ú	classnameÚidz<{classname} {con!r} {id:#x}>)r{   rg   r|   )r\   r>   r   r+   r|   ©r   s   &r   Ú__repr__ÚPoolConnectionProxy.__repr__y   sn   € Ø�9‰9ÒØ5×<Ñ<ØŸ.™.×1Ñ1´b¸³hð =ó @ð @ð 3×9Ñ9ØŸ.™.×1Ñ1°t·y±yÄRÈÃXð :ó Oð Or!   )r\   rl   N)
r+   r,   r-   r.   Ú	__slots__rn   rs   rw   r~   r0   r*   r!   r   rd   rd   `   s$   † ð $€Iõõ(õ÷Oñ Or!   rd   T)Ú	metaclassr5   c                  óÂ   € ] tR t^‚tRtR R ltR R ltR R ltR R ltR	 R
 lt	R R lt
R R ltR R ltR R ltR R ltR R ltR R ltR R ltR R ltRtR# ) rf   c          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r7   Úpoolz'Pool'Úmax_queriesÚfloatÚsetupz:Optional[Callable[[PoolConnectionProxy], Awaitable[None]]]Úmax_inactive_timer=   rh   r*   )r>   s   "r   r?   Ú!PoolConnectionHolder.__annotate__Š   s=   € ÷ /ñ /àð/ð ð	/ð
 Jð/ð !ð/ð 
ñ/r!   c               	óŠ   € Wn         R V n        R V n        W n        W@n        W0n        R V n        R V n        R V n        R V n	        R # rk   )
Ú_poolr\   Ú_proxyÚ_max_queriesÚ_max_inactive_timeÚ_setupÚ_inactive_callbackÚ_in_useÚ_timeoutÚ_generation)r   r„   r…   r‡   rˆ   s   &&$$$r   rn   ÚPoolConnectionHolder.__init__Š   sF   € ð Œ
Ø59ˆŒ	Ø59ˆŒà'ÔØ"3ÔØŒØ6:ˆÔØ15ˆŒØ)-ˆŒØ*.ˆÖr!   c               ó   € V ^8„  d   QhRR/# ©r7   r=   r<   r*   )r>   s   "r   r?   r‰   Ÿ   s   € ÷ Cñ C˜dñ Cr!   c                	ól   € V P                   R J;'       d     V P                   P                  4       '       * # rk   )r\   Ú	is_closedr}   s   &r   r   Ú!PoolConnectionHolder.is_connectedŸ   s)   € Ø�y‰y Ð$×BÐB¨T¯Y©Y×-@Ñ-@Ó-BÔ)BÐBr!   c               ó   € V ^8„  d   QhRR/# r–   r*   )r>   s   "r   r?   r‰   ¢   s   € ÷  ñ  ˜ñ  r!   c                	ó$   € V P                   '       * # rk   ©r‘   r}   s   &r   Úis_idleÚPoolConnectionHolder.is_idle¢   s   € Ø—<‘<ÔÐr!   c               ó   € V ^8„  d   QhRR/# ©r7   r=   rh   r*   )r>   s   "r   r?   r‰   ¥   s   € ÷ (ñ (˜tñ (r!   c              ƒ  	óP  "  € V P                   e   \        P                  ! R4      hV P                  P                  pV P                  P                  4       G R j  x€L
 pV P                  P                  4       '       d/   VP                  4       G R j  x€L
  \        P                  ! R4      hVP                  4       '       d   \        P                  ! R4      hW n         \        P                  ! V 4      Vn        Wn        V P                  4        V P                  4        R #  LÇ L‘5i)NzMPoolConnectionHolder.connect() called while another connection already existsúpool is closingz0connection was closed during pool initialization)r\   r   ÚInternalClientErrorr‹   r“   Ú_get_new_connectionÚ
is_closingÚcloser]   r˜   ÚConnectionDoesNotExistErrorÚweakrefÚrefÚ_pool_holderÚ_maybe_cancel_inactive_callbackÚ_setup_inactive_callback)r   Ú
generationrg   s   &  r   ÚconnectÚPoolConnectionHolder.connect¥   sà   é € Ø�9‰9Ò Ü×0Ò0ð,ó-ð -ð —Z‘Z×+Ñ+ˆ
Ø—J‘J×2Ñ2Ó4×4ˆØ�:‰:× Ñ ×"Ò"Ø—)‘)“+×ÐÜ×+Ò+Ð,=Ó>Ð>Ø�=‰=�?Š?Ü×8Ò8ØBóDð DàŒ	ä"Ÿ;š; tÓ,ˆÔØ%ÔØ×,Ñ,Ô.Ø×%Ñ%Ö'ñ 5áùs1   ‚AD&ÁD"Á#D&Á?D&ÂD$Â/D&ÃA D&Ä$D&c               ó   € V ^8„  d   QhRR/# )r7   r=   rd   r*   )r>   s   "r   r?   r‰   º   s   € ÷ #ñ #Ð2ñ #r!   c              ƒ  	ój  "  € V P                   e!   V P                   P                  4       '       d!   R V n         V P                  4       G R j  x€L
  M�V P                  V P                  P                  8w  di   V P                  P
                  P                  V P                   P                  V P                  R7      4       R V n         V P                  4       G R j  x€L
  V P                  4        \        W P                   4      ;V n        pV P                  e    V P                  V4      G R j  x€L
  V P                  P
                  P!                  4       V n        V#  EL L† L4  \        \        P                  3 d2   p T P                   P                  4       G R j  x€L 
  Th  Th; iR p?ii ; i5i)N©Útimeout)r\   r˜   r®   r“   r‹   Ú_loopÚcreate_taskr¦   r’   r«   rd   rŒ   r�   Ú	Exceptionr%   ÚCancelledErrorÚcreate_futurer‘   )r   ÚproxyÚexs   &  r   ÚacquireÚPoolConnectionHolder.acquireº   sE  é € Ø�9‰9Ò §	¡	× 3Ñ 3× 5Ò 5ØˆDŒIØ—,‘,“.× Ñ à×Ñ §¡×!7Ñ!7Ô7à�J‰J×Ñ×(Ñ(Ø—	‘	—‘¨¯©�Ó6ô8àˆDŒIØ—,‘,“.× Ð à×,Ñ,Ô.ä1°$¿	¹	ÓBÐBˆŒ�eà�;‰;Ò"ðØ—k‘k %Ó(×(Ð(ð —z‘z×'Ñ'×5Ñ5Ó7ˆŒàˆòA !ñ !ñ )øÜœw×5Ñ5Ð6ô ð
ð
 Ÿ)™)Ÿ/™/Ó+×+Ñ+à�Hø˜"�Hþðüs}   ‚.F3±F3ÁEÁBF3ÃE Ã>F3ÄE$ Ä-E"Ä.E$ Ä2,F3Å F3Å"E$ Å$F0Æ F%ÆF ÆF%Æ#F+Æ%F(Æ(F+Æ+F0Æ0F3c               ó    € V ^8„  d   QhRRRR/# )r7   r³   úOptional[float]r=   rh   r*   )r>   s   "r   r?   r‰   ß   s   € ÷ E(ñ E( _ð E(¸ñ E(r!   c              ƒ  	ó6  "  € V P                   f   \        P                  ! R4      hV P                  P	                  4       '       d   V P                  P                  4        R # R V n        V P                  P                  P                  V P                  8¼  d'   V P                  P                  VR7      G R j  x€L
  R # V P                  V P                  P                  8w  d'   V P                  P                  VR7      G R j  x€L
  R #  TpV P                  P                  P                  4       '       d.   V P                  P                  P                  V4      G R j  x€L
 pV P                  f   R # V P                  P	                  4       '       d   V P                  P                  4        R # V P                  P                  eˆ   \         P"                  ! V4      ;_uu_4       GR j  x€L
  V P                  P                  4       G R j  x€L
  V P                  P                  V P                  4      G R j  x€L
  R R R 4      GR j  x€L
  M%V P                  P%                  VR7      G R j  x€L
   V P-                  4        V P/                  4        R #  ELÞ EL– EL= L´ L” Li L[  + GR j  x€L 
 '       g   i     LL; i LT  \&        \(        P*                  3 d7   p T P                  e   T P                  P                  4        Th  Th; iR p?ii ; i5i)NzAPoolConnectionHolder.release() called on a free connection holderr²   )r‘   r   r£   r\   r˜   Ú	terminater’   Ú	_protocolÚqueries_countr�   r¦   r“   r‹   Ú_is_cancellingÚ_wait_for_cancellationÚ_resetr
   r³   Úresetr¶   r%   r·   Ú_releaser¬   )r   r³   Úbudgetrº   s   &&  r   ÚreleaseÚPoolConnectionHolder.releaseß   sJ  é € Ø�<‰<ÒÜ×0Ò0ð+ó,ð ,ð �9‰9×Ñ× Ò ð �I‰I×ÑÔ!ÙàˆŒà�9‰9×Ñ×,Ñ,°×0AÑ0AÔAð —)‘)—/‘/¨'�/Ó2×2Ð2Ùà×Ñ˜tŸz™z×5Ñ5Ô5ð —)‘)—/‘/¨'�/Ó2×2Ð2Ùð"	ØˆFà�y‰y×"Ñ"×1Ñ1×3Ò3ð  $Ÿy™y×2Ñ2×IÑIØó ÷ �ð �y‰yÒ ÙØ�y‰y×"Ñ"×$Ò$Ø—	‘	×#Ñ#Ô%Ùà�z‰z× Ñ Ò,Ü!Ÿ>š>¨&×1×1Õ1ØŸ)™)×*Ñ*Ó,×,Ð,ØŸ*™*×+Ñ+¨D¯I©IÓ6×6Ð6÷ 2×1Ð1ð —i‘i—o‘o¨f�oÓ5×5Ñ5ð 	�‰Œð 	×%Ñ%Ö'òg 3ò 3òñ 2Ù,Ù6÷ 2×1×1Ò1úñ 6øÜœ7×1Ñ1Ð2ô 
	ðð —9‘9Ò(Ø—I‘I×'Ñ'Ô)à�ø�b�þð
	üs.  ‚ALÁA1LÂ8JÂ9A
LÄJÄLÄ+K Ä7(K ÅJÅ K Å2LÅ4K ÆK Æ.LÆ0:K Ç*JÇ+K Ç.J'ÈJ!È,J'È9J#È:J'È>K É	J%É
K ÉLÉK É.KÉ/K É3$LÊLÊK ÊK Ê!J'Ê#J'Ê%K Ê'K 	Ê-J0Ê.
K 	Ê9K 	Ê;K Ê?LË K ËLË!(LÌ	LÌLÌLÌLÌLc               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   &  s   € ÷ ñ ¨4ñ r!   c              ƒ  	óZ   "  € V P                   f   R # V P                   G R j  x€L
  R #  L5irk   rœ   r}   s   &r   Úwait_until_releasedÚ(PoolConnectionHolder.wait_until_released&  s   é € Ø�<‰<ÒÙà—,‘,×Ôùs   ‚ +¢)£+c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   ,  s   € ÷ $ñ $˜Tñ $r!   c              ƒ  	óv   "  € V P                   e%   V P                   P                  4       G R j  x€L
  R # R #  L5irk   )r\   r¦   r}   s   &r   r¦   ÚPoolConnectionHolder.close,  s/   é € Ø�9‰9Ò ð —)‘)—/‘/Ó#×#Ò#ñ !ñ $ùs   ‚,9®7¯	9c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   2  s   € ÷ "ñ "˜4ñ "r!   c                	óZ   € V P                   e   V P                   P                  4        R # R # rk   )r\   rÀ   r}   s   &r   rÀ   ÚPoolConnectionHolder.terminate2  s#   € Ø�9‰9Ò ð �I‰I×ÑÖ!ñ !r!   c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   8  s   € ÷ Oñ O¨$ñ Or!   c                	óô   € V P                   e   \        P                  ! R4      hV P                  '       dB   V P                  P
                  P                  V P                  V P                  4      V n         R # R # )Nz/pool connection inactivity timer already exists)r�   r   r£   rŽ   r‹   r´   Ú
call_laterÚ_deactivate_inactive_connectionr}   s   &r   r¬   Ú-PoolConnectionHolder._setup_inactive_callback8  sh   € Ø×"Ñ"Ò.Ü×0Ò0ØAóCð Cð ×"×"Ð"Ø&*§j¡j×&6Ñ&6×&AÑ&AØ×'Ñ'¨×)MÑ)Mó'OˆDÖ#ñ #r!   c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   A  s   € ÷ +ñ +°ñ +r!   c                	óh   € V P                   e$   V P                   P                  4        R V n         R # R # rk   )r�   Úcancelr}   s   &r   r«   Ú4PoolConnectionHolder._maybe_cancel_inactive_callbackA  s-   € Ø×"Ñ"Ò.Ø×#Ñ#×*Ñ*Ô,Ø&*ˆDÖ#ñ /r!   c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   F  s   € ÷ "ñ "°ñ "r!   c                	óŽ  € V P                   e   \        P                  ! R4      hR V n        V P                  eŒ   V P                  4       '       dZ   V P                  P                  4       '       g:   V P                  P                  4       V P                  P                  4       8:  d   R # V P                  P                  4        R # R # )Nz/attempting to deactivate an acquired connection)r‘   r   r£   r�   r\   r   r‹   r¥   Úget_sizeÚget_min_sizerÀ   r}   s   &r   rØ   Ú4PoolConnectionHolder._deactivate_inactive_connectionF  s—   € Ø�<‰<Ò#Ü×0Ò0ØAóCð Cð #'ˆÔØ�9‰9Ò Ø×!Ñ!×#Ò#¨D¯J©J×,AÑ,A×,CÒ,CØ—J‘J×'Ñ'Ó)¨T¯Z©Z×-DÑ-DÓ-FÔFñ ð �I‰I×ÑÖ!ñ !r!   c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   W  s   € ÷ 4ñ 4 4ñ 4r!   c                	óˆ   € V P                  4        V P                  4        R V n        V P                  P	                  4        R # rk   )r«   rÇ   r\   r‹   Ú_schedule_min_size_maintenancer}   s   &r   Ú_release_on_closeÚ&PoolConnectionHolder._release_on_closeW  s.   € Ø×,Ñ,Ô.Ø�‰ŒØˆŒ	Ø�
‰
×1Ñ1Ö3r!   c               ó   € V ^8„  d   QhRR/# r    r*   )r>   s   "r   r?   r‰   ]  s   € ÷ +ñ +˜$ñ +r!   c                óR  € V P                   f   R# V P                   P                  4       '       g   V P                   P                  R4       RV n         V P                  e"   V P                  P	                  4        RV n        V P
                  P                  P                  V 4       R# )zRelease this connection holder.N)r‘   ÚdoneÚ
set_resultrŒ   rw   r‹   r   Ú
put_nowaitr}   s   &r   rÇ   ÚPoolConnectionHolder._release]  sx   € à�<‰<Òáà�|‰|× Ñ ×"Ò"Ø�L‰L×#Ñ# DÔ)ØˆŒð �;‰;Ò"Ø�K‰K×ÑÔ!ØˆDŒKð 	�
‰
×Ñ×$Ñ$ TÖ*r!   )
r\   r“   r‘   r�   rŽ   r�   r‹   rŒ   r�   r’   N)r\   r‹   r´   rŒ   r�   r�   rŽ   r‘   r�   r’   r“   Ú__weakref__)r+   r,   r-   r.   r€   rn   r   r�   r®   r»   rÉ   rÍ   r¦   rÀ   r¬   r«   rØ   ræ   rÇ   r0   r*   r!   r   rf   rf   ‚   sY   † ð/€Iõ/õ*Cõ õ(õ*#õJE(õNõ$õ"õOõ+õ
"õ"4÷+ñ +r!   rf   c                   ó,  € ] tR tRtRtRCtRRRRRRRRRR/R	 ltR
 tR tR t	R t
R tR tR tR tR tR tRDR ltR tRR/R R lltRR/R R lltRRRR/R R lltR^ RR/R ltRRRR/R  ltRRRR/R! ltR"RR#RRRR$RR%RR&RR'RR(RR)RR*RR+RR,R/R- ltRRR$RR%RR&RR'RR(RR)RR*RR+RR,R/
R. ltR"RR#RRRR$RR%RR/RR&RR'RR(RR)RR*RR+RR0RR1RR,RR2R/R3 ltR"RR#RRRR2R/R4 ltRR/R5 ltR6 tRR/R7 ltR8 t R9 t!R: t"R; t#R< t$R= t%R> t&R? t'R@ t(RA t)RBt*R# )EÚPooliq  au  A connection pool.

Connection pool can be used to manage a set of connections to the database.
Connections are first acquired from the pool, then used, and then released
back to the pool.  Once a connection is released, it's reset to close all
open cursors and other resources *except* prepared statements.

Pools are created by calling :func:`~asyncpg.pool.create_pool`.
Ú	init_sizeNr®   r‡   ÚinitrÆ   c               	óä  € \        V4      ^8”  d   \        P                  ! R\        ^R7       V
f   \        P
                  ! 4       p
W n        V^ 8:  d   \        R4      hV^ 8  d   \        R4      hW#8”  d   \        R4      hVf   TpV^ 8  d   \        R4      hW8”  d   \        R4      hW8  d   \        R	4      hV^ 8:  d   \        R
4      hV^ 8  d   \        R4      h\        V\        P                  4      '       g   \        RP                  V4      4      h\        V\        P                  4      '       g   \        RP                  V4      4      hWn        W n        W0n        . V n        RV n        RV n        RV n        W°n        WÀn        RV n        RV n        ^ V n        RV n        Ve   TM\        P8                  V n        WÐn        Wàn        Wpn         W€n!        W�n"        W@n#        VV n$        R# )r   z°Passing multiple positional arguments to asyncpg.Pool constructor is deprecated and will be removed in asyncpg 0.17.0.  The non-deprecated form is asyncpg.Pool(<dsn>, **kwargs))Ú
stacklevelNz,max_size is expected to be greater than zeroz3min_size is expected to be greater or equal to zeroz!min_size is greater than max_sizez4init_size is expected to be greater or equal to zeroz"init_size is greater than max_sizez"init_size is smaller than min_sizez/max_queries is expected to be greater than zerozKmax_inactive_connection_lifetime is expected to be greater or equal to zerozMconnection_class is expected to be a subclass of asyncpg.Connection, got {!r}zErecord_class is expected to be a subclass of asyncpg.Record, got {!r}F)%r   ÚwarningsÚwarnÚDeprecationWarningr%   Úget_event_loopr´   Ú
ValueErrorÚ
issubclassr   rD   Ú	TypeErrorr>   r   ÚRecordÚ	_initsizeÚ_minsizeÚ_maxsizeÚ_holdersÚ_initializedÚ_initializingr   Ú_connection_classÚ_record_classÚ_closingÚ_closedr“   Ú_maintenance_taskr®   Ú_connectÚ_connect_argsÚ_connect_kwargsr�   Ú_initrÅ   r�   Ú!_max_inactive_connection_lifetime)r   rñ   Úmin_sizeÚmax_sizer…   Ú max_inactive_connection_lifetimer®   r‡   rò   rÆ   ÚloopÚconnection_classÚrecord_classÚconnect_argsÚconnect_kwargss   &$$$$$$$$$$$$*,r   rn   ÚPool.__init__…  sú  € ô ˆ|Ó˜qÔ Ü�MŠMð0ô #¨qõ2ð Š<Ü×)Ò)Ó+ˆDØŒ
à�qŒ=ÜÐKÓLÐLà�aŒ<ÜØEóGð Gð ÔÜÐ@ÓAÐAàÒØ ˆIà�qŒ=ÜØFóHð Hð ÔÜÐAÓBÐBàÔÜÐAÓBÐBà˜!ÔÜÐNÓOÐOà+¨aÔ/Üð#ó$ð $ô Ð*¬J×,AÑ,A×BÒBÜð/ß/5©vÐ6FÓ/GóIð Iô ˜,¬¯©×8Ò8Üð+ß+1©6°,Ó+?óAð Að #ŒØ ŒØ ŒàˆŒØ!ˆÔØ"ˆÔØˆŒà!1ÔØ)ÔàˆŒØˆŒØˆÔØ!%ˆÔà#*Ò#6™¼J×<NÑ<NˆŒØ)ÔØ-ÔàŒØŒ
ØŒà'Ôà,ð 	Ö.r!   c              ƒ  	ó0  "  € V P                   '       d   V # V P                  '       d   \        P                  ! R 4      hV P                  '       d   \        P                  ! R4      hRV n         V P                  4       G Rj  x€L
  V RV n        RV n         V P                  4        #  L$  \        \        P                  3 d-    RT n        T P                   F  pTP                  4        K  	  h i ; i  RT n        RT n         T P                  4        i ; i5i)z)pool is being initialized in another taskúpool is closedTNF)r  r  r   r]   r  Ú_initializerå   r¶   r%   r·   r   rÀ   )r   r'   s   & r   Ú_async__init__ÚPool._async__init__æ  sô   é € Ø××ÐØˆKØ××ÐÜ×+Ò+Ø;ó=ð =à�<�<ˆ<Ü×+Ò+Ð,<Ó=Ð=Ø!ˆÔð	2Ø×"Ñ"Ó$×$Ð$Øð "'ˆDÔØ $ˆDÔØ×/Ñ/Õ1ñ %øäœ7×1Ñ1Ð2ô 	àˆDŒLØŸ-œ-�Ø× Ñ Ö"ñ (àð	ûð "'ˆDÔØ $ˆDÔØ×/Ñ/Õ1üsG   ‚&D©'DÁDÁ/B) ÂB'ÂB) ÂDÂ'B) Â)AC0Ã0C3 Ã3 DÄDc              ƒ  	óî  "  € \        V P                  R 7      V n        \        V P                  4       Ff  p\	        V V P
                  V P                  V P                  R7      pV P                  P                  V4       V P                  P                  V4       Kh  	  V P                  '       dÁ   V P                  R,          pVP                  4       G Rj  x€L
  V P                  ^8”  dƒ   . p\        \        V P                  RR 4      4       F=  w  rRWPP                  ^,
          8¼  d    M#VP                  VP                  4       4       K?  	  \        P                   ! V!  G Rj  x€L
  R# R# R#  L› L5i))Úmaxsize)r…   rˆ   r‡   Nr   )r   rÿ   r   r   rf   r�   r  r�   r   Úappendrì   rý   r®   Ú	enumerateÚreversedr%   Úgather)r   rB   ÚchÚfirst_chÚconnect_tasksr   s   &     r   r  ÚPool._initializeý  s"  é € Ü0¸¿¹ÔGˆŒÜ�t—}‘}Ö%ˆAÜ%ØØ ×-Ñ-Ø"&×"HÑ"HØ—k‘kô	#ˆBð �M‰M× Ñ  Ô$Ø�K‰K×"Ñ" 2Ö&ñ &ð �>�>ˆ>ð —}‘} RÕ(ˆHØ×"Ñ"Ó$×$Ð$à�~‰~ Ô!Ø "�Ü&¤x°·±¸c¸rÐ0BÓ'CÖD‘E�AàŸN™N¨QÕ.Ô.ÙØ!×(Ñ(¨¯©«Ö6ñ	 Eô —n’n mÑ4×4Ò4ñ "ñ ñ %ñ 5ùs+   ‚B,E5Â/&E5ÃE1ÃBE5Å&E3Å'E5Å3E5c                	ó\  € V P                   '       dI   V P                  '       g7   V P                  4       '       g!   V P                  '       d   V P                  e   R # V P                  4       V P                  8  d1   V P                  P                  V P                  4       4      V n        R # R # rk   )	r  r  r¥   rþ   r  rà   r´   rµ   Ú_maintain_min_sizer}   s   &r   rå   Ú#Pool._schedule_min_size_maintenance  sv   € Ø×!×!Ð! T×%7×%7Ð%7¸4¿?¹?×;LÒ;LØ—}—}�}¨×(>Ñ(>Ò(JÙØ�=‰=‹?˜TŸ]™]Ô*Ø%)§Z¡Z×%;Ñ%;Ø×'Ñ'Ó)ó&+ˆDÖ"ñ +r!   c              ƒ  	ó‚  "  € R p V P                  4       '       gÎ   V P                  4       V P                  8  d¯    V P                  P	                  4       pRp TP                  e   TP                  4        TP                  4       G Rj  x€L
  T P                  P                  T4       T'       d4   \
        P                   ! T4      G Rj  x€L
  \#        T^,          R4      pKß  R pKã  RV n        R#   \
        P                   d     RT n        R# i ; i LŠ  \
        P                   d    h \         dX    T P                  4       '       d&    T P                  P                  T4       RT n        R# Rp\        P                  RRR7        Lþi ; i  T P                  P                  T4       i ; i Lå  RT n        i ; i5i)g      ð?NFTz5Failed to restore the pool connection floor; retrying)Úexc_infog      N@)r¥   rà   rþ   r   r(   r%   r&   r  r\   rÀ   r®   r·   r¶   rì   ÚloggerÚwarningÚsleepÚmin)r   Úretry_delayr'   Úfaileds   &   r   r&  ÚPool._maintain_min_size&  s{  é € Øˆð	*Ø—o‘o×'Ò'¨D¯M©M«O¸d¿m¹mÔ,KðØ!Ÿ[™[×@Ñ@ÓB�Fð
 �ð3Ø—{‘{Ò.Ø×(Ñ(Ô*Ø Ÿ.™.Ó*×*Ð*ð —K‘K×*Ñ*¨6Ô2çÜ!Ÿ-š-¨Ó4×4Ð4Ü"% k°A¥o°tÓ"<’Kà"%’Kà%)ˆDÖ"øô5 ×)Ñ)ô àð0 &*ˆDÖ"ð5úñ +øÜ×-Ñ-ô ØÜ ô EØ—‘×(Ò(Øð
 —K‘K×*Ñ*¨6Ô2ð &*ˆDÖ"ð "�FÜ—N‘Nð $5Ø?Cð #ö Eð	Eûð —K‘K×*Ñ*¨6Õ2úñ 5øð
 &*ˆDÕ"üs¼   ‚F?†F3 œF3 ¼C2 ÁF3 Á1D Â
DÂD Â"F3 Â2F3 ÃF1ÃF3 Ã)	F?Ã2DÄF3 Ä	F?ÄDÄF3 ÄD ÄFÄ6FÅF ÅF3 Å)	F?Å2FÆF ÆFÆF ÆF.Æ.F3 Æ3	F<Æ<F?c                óB   € V P                   ;'       g    V P                  # )zOReturn ``True`` if the pool is closing or is closed.

.. versionadded:: 0.28.0
)r  r  r}   s   &r   r¥   ÚPool.is_closingH  s   € ð
 �|‰|×,Ð,˜tŸ}™}Ð,r!   c                ó:   € \        R V P                   4       4      # )zQReturn the current number of connections in this pool.

.. versionadded:: 0.25.0
c              3  ó@   "  € T F  qP                  4       x € K  	  R # 5irk   )r   ©Ú.0Úhs   & r   Ú	<genexpr>Ú Pool.get_size.<locals>.<genexpr>T  s   é € Ð;©]¨—>‘>×#Ð#«]ùó   ‚©Úsumr   r}   s   &r   rà   ÚPool.get_sizeO  s   € ô
 Ñ;¨T¯]ª]Ó;Ó;Ð;r!   c                ó   € V P                   # )zQReturn the initial number of connections in this pool.

.. versionadded:: 0.32.0
)rý   r}   s   &r   Úget_init_sizeÚPool.get_init_sizeV  s   € ð
 �~‰~Ðr!   c                ó   € V P                   # )zÜReturn the minimum number of connections in this pool.

.. versionadded:: 0.25.0

.. versionchanged:: 0.32.0
    The parameter now controls the connection floor rather than the
    initial pool size (see ``init_size``).
)rþ   r}   s   &r   rá   ÚPool.get_min_size]  s   € ð �}‰}Ðr!   c                ó   € V P                   # )zYReturn the maximum allowed number of connections in this pool.

.. versionadded:: 0.25.0
)rÿ   r}   s   &r   Úget_max_sizeÚPool.get_max_sizeh  s   € ð
 �}‰}Ðr!   c                ó:   € \        R V P                   4       4      # )zVReturn the current number of idle connections in this pool.

.. versionadded:: 0.25.0
c              3  óp   "  € T F,  qP                  4       ;'       d    VP                  4       x € K.  	  R # 5irk   )r   r�   r5  s   & r   r8  Ú%Pool.get_idle_size.<locals>.<genexpr>t  s&   é € ÐK¹]¸—>‘>Ó#×3Ð3¨¯	©	«Ô3»]ùs   ‚6�6r;  r}   s   &r   Úget_idle_sizeÚPool.get_idle_sizeo  s   € ô
 ÑK¸T¿]º]ÓKÓKÐKr!   c                ó"   € V.V n         W n        R# )aZ  Set the new connection arguments for this pool.

The new connection arguments will be used for all subsequent
new connection attempts.  Existing connections will remain until
they expire. Use :meth:`Pool.expire_connections()
<asyncpg.pool.Pool.expire_connections>` to expedite the connection
expiry.

:param str dsn:
    Connection arguments specified using as a single string in
    the following format:
    ``postgres://user:pass@host:port/database?option=value``.

:param \*\*connect_kwargs:
    Keyword arguments for the :func:`~asyncpg.connection.connect`
    function.

.. versionadded:: 0.16.0
N)r	  r
  )r   Údsnr  s   &&,r   Úset_connect_argsÚPool.set_connect_argsv  s   € ð* "˜UˆÔØ-Ör!   c           	   ƒ  	óÞ  "  € V P                   ! V P                  R V P                  RV P                  RV P                  /V P
                  B G Rj  x€L
 p\        WP                  4      '       g‰   V P                  pVP                   RVP                   2p\        V4      pVP                  R8X  d   VP                  pMVP                   RVP                   2p\        P                  ! RV RV R24      hV P                  e    V P                  V4      G Rj  x€L
  V# V#  LÓ L
  \        \        P                  3 d(   p TP!                  4       G Rj  x€L 
  Th  Th; iRp?ii ; i5i)	r  r  r  NÚ.Úbuiltinsz9expected pool connect callback to return an instance of 'z', got 'Ú')r  r	  r´   r  r  r
  Ú
isinstancer,   r+   Útyper   r]   r  r¶   r%   r·   r¦   )r   rg   ÚgoodÚgood_nÚbadÚbad_nrº   s   &      r   r¤   ÚPool._get_new_connectionŽ  sg  é € Ø—M’MØ×Ñð
à—‘ð
ð "×3Ñ3ð
ð ×+Ñ+ð	
ð
 ×"Ñ"ñ
÷ 
ˆô ˜#×5Ñ5×6Ò6Ø×)Ñ)ˆDØŸ™Ð(¨¨$¯-©-¨Ð9ˆFÜ�s“)ˆCØ�~‰~ Ô+ØŸ™‘àŸ>™>Ð*¨!¨C¯L©L¨>Ð:�Ü×+Ò+ðØ�8˜<¨ w¨að1óð ð
 �:‰:Ò!ðØ—j‘j “o×%Ð%ð ˆ
ˆsˆ
ñK
ñ, &øÜœw×5Ñ5Ð6ô ð
ð
 Ÿ)™)›+×%Ñ%à�Hø˜"�Hþðüsg   ‚AE-ÁD$ÁB5E-ÄD( ÄD&ÄD( Ä E-Ä&D( Ä(E*ÅEÅEÅEÅE%ÅE"Å"E%Å%E*Å*E-r³   c               ó$   € V ^8„  d   QhRRRRRR/# )r7   Úqueryr9   r³   r¾   r=   r*   )r>   s   "r   r?   ÚPool.__annotate__¶  s-   € ÷ Dñ DàðDð !ð	Dð
 
ñDr!   c             ‡  óò   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  ! V.VO5RV/ G Rj  x€L
 uuRRR4      GRj  x€L
  #  L4 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)zîExecute an SQL command (or commands).

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.execute() <asyncpg.connection.Connection.execute>`.

.. versionadded:: 0.10.0
Nr³   )r»   Úexecute)r   r[  r³   rX   rg   s   &&$* r   r^  ÚPool.execute¶  sF   é € ð —<‘<—>—>”> SØŸš UÐC¨TÒC¸7ÑC×C÷ "—>”>ÙC÷ "—>—>“>üsZ   ‚A7ŸA A7£A½A¾AÁA7ÁAÁA7ÁAÁA7ÁA4	Á A#Á!
A4	Á,A4	Á.	A7c               ó    € V ^8„  d   QhRRRR/# )r7   Úcommandr9   r³   r¾   r*   )r>   s   "r   r?   r\  Ç  s"   € ÷ Iñ IàðIð
 !ñIr!   c             ƒ  óì   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  WVR7      G Rj  x€L
 uuRRR4      GRj  x€L
  #  L1 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a  Execute an SQL *command* for each sequence of arguments in *args*.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.executemany()
<asyncpg.connection.Connection.executemany>`.

.. versionadded:: 0.10.0
Nr²   )r»   Úexecutemany)r   ra  rX   r³   rg   s   &&&$ r   rc  ÚPool.executemanyÇ  s@   é € ð  —<‘<—>—>”> SØŸ™¨À˜ÓH×H÷ "—>”>ÙH÷ "—>—>“>üóY   ‚A4ŸA A4£AºA»A¾A4ÁAÁA4ÁAÁA4ÁA1	ÁA Á
A1	Á)A1	Á+	A4r  c               ó   € V ^8„  d   QhRR/# )r7   r=   Úlistr*   )r>   s   "r   r?   r\  Ú  s   € ÷ ñ ð 
ñr!   c          	   ‡  óö   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  ! V.VO5RVRV/ G Rj  x€L
 uuRRR4      GRj  x€L
  #  L6 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a  Run a query and return the results as a list of :class:`Record`.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.fetch() <asyncpg.connection.Connection.fetch>`.

.. versionadded:: 0.10.0
Nr³   r  )r»   Úfetch©r   r[  r³   r  rX   rg   s   &&$$* r   ri  Ú
Pool.fetchÚ  s_   é € ð —<‘<—>—>”> SØŸšØðàòð  ðð *ñ	÷ ÷ "—>”>ñ÷ "—>—>“>üó[   ‚A9ŸA A9£A¿AÁ AÁA9ÁAÁA9ÁAÁA9ÁA6	Á"A%Á#
A6	Á.A6	Á0	A9Úcolumnc          	   ‡  óö   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  ! V.VO5RVRV/ G Rj  x€L
 uuRRR4      GRj  x€L
  #  L6 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)zûRun a query and return a value in the first row.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.fetchval()
<asyncpg.connection.Connection.fetchval>`.

.. versionadded:: 0.10.0
Nrm  r³   )r»   Úfetchval)r   r[  rm  r³   rX   rg   s   &&$$* r   ro  ÚPool.fetchvalñ  s[   é € ð —<‘<—>—>”> SØŸšØð>Øò>Ø%+ð>Ø5<ñ>÷ >÷ "—>”>ñ>÷ "—>—>“>ürl  c          	   ‡  óö   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  ! V.VO5RVRV/ G Rj  x€L
 uuRRR4      GRj  x€L
  #  L6 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)zðRun a query and return the first row.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.fetchrow() <asyncpg.connection.Connection.fetchrow>`.

.. versionadded:: 0.10.0
Nr³   r  )r»   Úfetchrowrj  s   &&$$* r   rr  ÚPool.fetchrowÿ  s_   é € ð —<‘<—>—>”> SØŸšØðàòð  ðð *ñ	÷ ÷ "—>”>ñ÷ "—>—>“>ürl  c          	   ƒ  óì   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  WW4R7      G Rj  x€L
 uuRRR4      GRj  x€L
  #  L1 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a6  Run a query for each sequence of arguments in *args*
and return the results as a list of :class:`Record`.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.fetchmany()
<asyncpg.connection.Connection.fetchmany>`.

.. versionadded:: 0.30.0
N)r³   r  )r»   Ú	fetchmany)r   r[  rX   r³   r  rg   s   &&&$$ r   ru  ÚPool.fetchmany  sJ   é € ð —<‘<—>—>”> SØŸ™Ø Wð 'ó ÷ ÷ "—>”>ñ÷ "—>—>“>üre  ÚcolumnsÚschema_namer>   ÚoidsÚ	delimiterÚnullÚheaderÚquoteÚescapeÚforce_quoteÚencodingc             ƒ  ó  "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  VVVVVVVVV	V
VVVVR7      G Rj  x€L
 uuRRR4      GRj  x€L
  #  L= L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a  Copy table contents to a file or file-like object.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.copy_from_table()
<asyncpg.connection.Connection.copy_from_table>`.

.. versionadded:: 0.24.0
N)Úoutputrw  rx  r³   r>   ry  rz  r{  r|  r}  r~  r  r€  )r»   Úcopy_from_table)r   Ú
table_namer‚  rw  rx  r³   r>   ry  rz  r{  r|  r}  r~  r  r€  rg   s   &&$$$$$$$$$$$$$ r   rƒ  ÚPool.copy_from_table   sq   é € ð6 —<‘<—>—>”> SØ×,Ñ,ØØØØ'ØØØØ#ØØØØØ'Ø!ð -ó ÷ ÷ "—>”>ñ÷ "—>—>“>üs\   ‚B ŸA B £#A#ÁAÁA#Á
B ÁA!ÁB ÁA#Á!B Á#A=	Á)A,Á*
A=	Á5A=	Á7	B c             ‡  ó  "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  ! V.VO5RVRVRVRVRVRVRVR	V	R
V
RVRV/ G Rj  x€L
 uuRRR4      GRj  x€L
  #  LH L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a  Copy the results of a query to a file or file-like object.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.copy_from_query()
<asyncpg.connection.Connection.copy_from_query>`.

.. versionadded:: 0.24.0
Nr‚  r³   r>   ry  rz  r{  r|  r}  r~  r  r€  )r»   Úcopy_from_query)r   r[  r‚  r³   r>   ry  rz  r{  r|  r}  r~  r  r€  rX   rg   s   &&$$$$$$$$$$$* r   r‡  ÚPool.copy_from_queryM  s»   é € ð2 —<‘<—>—>”> SØ×,Ò,Øðàòð ðð  ð	ð
 ðð ðð $ðð ðð ðð ðð ðð (ðð "ñ÷ ÷ "—>”>ñ÷ "—>—>“>üs\   ‚BŸA( B£.A.ÁA*ÁA.ÁBÁ"A,Á#BÁ*A.Á,BÁ.B	Á4A7Á5
B	Â B	Â	BÚfreezeÚforce_not_nullÚ
force_nullÚwherec             ƒ  ó  "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  VVVVVVVVV	V
VVVVVVVVR7      G Rj  x€L
 uuRRR4      GRj  x€L
  #  LA L L	  + GRj  x€L 
 '       g   i     R# ; i5i)zöCopy data to the specified table.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.copy_to_table()
<asyncpg.connection.Connection.copy_to_table>`.

.. versionadded:: 0.24.0
N)Úsourcerw  rx  r³   r>   ry  r‰  rz  r{  r|  r}  r~  r  rŠ  r‹  r€  rŒ  )r»   Úcopy_to_table)r   r„  rŽ  rw  rx  r³   r>   ry  r‰  rz  r{  r|  r}  r~  r  rŠ  r‹  r€  rŒ  rg   s   &&$$$$$$$$$$$$$$$$$ r   r�  ÚPool.copy_to_tablew  s}   é € ð> —<‘<—>—>”> SØ×*Ñ*ØØØØ'ØØØØØ#ØØØØØ'Ø-Ø%Ø!Øð% +ó ÷ ÷ "—>”>ñ÷ "—>—>“>üs\   ‚BŸA! B£'A'Á
A#ÁA'ÁBÁA%ÁBÁ#A'Á%BÁ'B	Á-A0Á.
B	Á9B	Á;	Bc             ƒ  óô   "  € V P                  4       ;_uu_4       GRj  x€L
 pVP                  VVVVVVR7      G Rj  x€L
 uuRRR4      GRj  x€L
  #  L5 L L	  + GRj  x€L 
 '       g   i     R# ; i5i)a%  Copy a list of records to the specified table using binary COPY.

Pool performs this operation using one of its connections.  Other than
that, it behaves identically to
:meth:`Connection.copy_records_to_table()
<asyncpg.connection.Connection.copy_records_to_table>`.

.. versionadded:: 0.24.0
N)Úrecordsrw  rx  r³   rŒ  )r»   Úcopy_records_to_table)r   r„  r’  rw  rx  r³   rŒ  rg   s   &&$$$$$ r   r“  ÚPool.copy_records_to_table¬  sY   é € ð& —<‘<—>—>”> SØ×2Ñ2ØØØØ'ØØð 3ó ÷ ÷ "—>”>ñ÷ "—>—>“>üsZ   ‚A8ŸA A8£A¾A¿AÁA8ÁAÁA8ÁAÁA8ÁA5	Á!A$Á"
A5	Á-A5	Á/	A8c               ó   € \        W4      # )aä  Acquire a database connection from the pool.

:param float timeout: A timeout for acquiring a Connection.
:return: An instance of :class:`~asyncpg.connection.Connection`.

Can be used in an ``await`` expression or with an ``async with`` block.

.. code-block:: python

    async with pool.acquire() as con:
        await con.execute(...)

Or:

.. code-block:: python

    con = await pool.acquire()
    try:
        await con.execute(...)
    finally:
        await pool.release(con)
)ÚPoolAcquireContext)r   r³   s   &$r   r»   ÚPool.acquireÉ  s   € ô. " $Ó0Ð0r!   c              ƒ  	ó  a a"  € V V3R  lpS P                   '       d   \        P                  ! R4      hS P                  4        Sf   V! 4       G Rj  x€L
 # \        P
                  ! V! 4       SR7      G Rj  x€L
 #  L) L5i)c               “  ó2  <"  € SP                   P                  4       G R j  x€L
 p  V P                  4       G R j  x€L
 pSV n        V#  L& L  \        \
        P                  3 d.    SP                   P                  T 4       SP                  4        h i ; i5irk   )	r   Úgetr»   r’   r¶   r%   r·   rì   rå   )r!  r¹   r   r³   s     €€r   Ú_acquire_implÚ$Pool._acquire.<locals>._acquire_implã  s|   øé € Ø—{‘{—‘Ó(×(ˆBð
Ø Ÿj™j›l×*�ð &�”Ø�ñ )á*øÜœw×5Ñ5Ð6ô Ø—‘×&Ñ& rÔ*Ø×3Ñ3Ô5Øðüs6   ƒB¡A¢B§A ºA
»A ¿
BÁ
A ÁABÂBr¢   Nr²   )r  r   r]   Ú_check_initr
   Úwait_for)r   r³   r›  s   ff r   Ú_acquireÚPool._acquireâ  sk   ùé € ö	ð �=�=ˆ=Ü×+Ò+Ð,=Ó>Ð>Ø×ÑÔàŠ?Ù&›×(Ð(äŸšÙ“¨ô2÷ 2ð 2ñ )ñ2ùs$   „AB ÁA<Á$B Á7A>Á8B Á>B c             ƒ  óº  "  € \        V4      \        Jg   VP                  P                  V Jd'   \        P
                  ! RP                  VR7      4      hVP                  f   R# V P                  4        VP                  P                  4        VP                  pVf   VP                  p\        P                  ! VP                  V4      4      G Rj  x€L
 #  L5i)a©  Release a database connection back to the pool.

:param Connection connection:
    A :class:`~asyncpg.connection.Connection` object to release.
:param float timeout:
    A timeout for releasing the connection.  If not specified, defaults
    to the timeout provided in the corresponding call to the
    :meth:`Pool.acquire() <asyncpg.pool.Pool.acquire>` method.

.. versionchanged:: 0.14.0
    Added the *timeout* parameter.
zWPool.release() received invalid connection: {connection!r} is not a member of this poolr   N)rT  rd   rl   r‹   r   r]   r>   r\   r�  Ú_on_releaser’   r%   ÚshieldrÉ   )r   r   r³   r!  s   &&$ r   rÉ   ÚPool.releaseû  sº   é € ô �ÓÔ$7Ó7Ø×"Ñ"×(Ñ(°Ó4Ü×+Ò+ð>ß>D¹fØ)ð ?Eó ?+ó,ð ,ð
 �?‰?Ò"áà×ÑÔð 	�‰×#Ñ#Ô%à×ÑˆØŠ?Ø—k‘kˆGô
 —^’^ B§J¡J¨wÓ$7Ó8×8Ð8Ñ8ùs   ‚CCÃCÃCc              ƒ  óŒ  "  € V P                   '       d   R# V P                  4        RV n        Rp V P                  eL   V P                  P	                  4        \
        P                  ! V P                  RR7      G Rj  x€L
  RV n        V P                  P                  ^<V P                  4      pV P                   Uu. uF  q"P                  4       NK  	  pp\
        P                  ! V!  G Rj  x€L
  V P                   Uu. uF  q"P                  4       NK  	  pp\
        P                  ! V!  G Rj  x€L
   Te   TP	                  4        RT n         RT n        R#  LÞu upi  Ltu upi  L7  \        \
        P                  3 d    T P                  4        h i ; i  Te   TP	                  4        RT n         RT n        i ; i5i)a2  Attempt to gracefully close all connections in the pool.

Wait until all pool connections are released, close them and
shut down the pool.  If any error (including cancellation) occurs
in ``close()`` the pool will terminate by calling
:meth:`Pool.terminate() <pool.Pool.terminate>`.

It is advisable to use :func:`python:asyncio.wait_for` to set
a timeout.

.. versionchanged:: 0.16.0
    ``close()`` now waits until all pool connections are released
    before closing them and the pool.  Errors raised in ``close()``
    will cause immediate pool termination.
NT)Úreturn_exceptionsF)r  r�  r  r  rÜ   r%   r   r´   r×   Ú_warn_on_long_closer   rÍ   r¦   r¶   r·   rÀ   )r   Úwarning_callbackr!  Úrelease_corosÚclose_coross   &    r   r¦   Ú
Pool.close!  s’  é € ð  �<�<ˆ<ÙØ×ÑÔàˆŒàÐð	"Ø×%Ñ%Ò1Ø×&Ñ&×-Ñ-Ô/Ü—n’nØ×*Ñ*¸dôD÷ Dð Dà)-�Ô&à#Ÿz™z×4Ñ4Ø�D×,Ñ,ó .Ðð 48·=²=óBÙ3@¨R×&Ñ&Ö(±=ð ð Bä—.’. -Ñ0×0Ð0ð &*§]¢]ó4Ù%2˜r—‘–
¡]ð ð 4ä—.’. +Ñ.×.Ñ.ð  Ò+Ø ×'Ñ'Ô)ØˆDŒLØ!ˆDŽMñ/DùòBá0ùò4á.øäœ7×1Ñ1Ð2ô 	Ø�N‰NÔØð	ûð
  Ò+Ø ×'Ñ'Ô)ØˆDŒLØ!ˆD�Müsw   ‚.G±AE- Á>EÁ??E- Â>EÃE- Ã/E$Ã0E- ÄE&ÄE- Ä3E+Ä4E- Ä9$GÅE- ÅE- Å&E- Å--FÆF Æ$GÇGc                	ó0   € \         P                  R 4       R# )z Pool.close() is taking over 60 seconds to complete. Check if you have any unreleased connections left. Use asyncio.wait_for() to set a timeout for Pool.close().N)r*  r+  r}   s   &r   r§  ÚPool._warn_on_long_closeT  s   € Ü�‰ð 'ö 	(r!   c                óò   € V P                   '       d   R# V P                  4        RV n         V P                  e   V P                  P                  4        V P                   F  pVP                  4        K  	  R# )z&Terminate all connections in the pool.NT)r  r�  r  rÜ   r   rÀ   ©r   r!  s   & r   rÀ   ÚPool.terminateZ  sV   € à�<�<ˆ<ÙØ×ÑÔØˆŒØ×!Ñ!Ò-Ø×"Ñ"×)Ñ)Ô+Ø—-”-ˆBØ�L‰LŽNó  r!   c              ƒ  ó@   "  € V ;P                   ^,          un         R# 5i)z®Expire all currently open connections.

Cause all currently open connections to get replaced on the
next :meth:`~asyncpg.pool.Pool.acquire()` call.

.. versionadded:: 0.16.0
N)r“   r}   s   &r   Úexpire_connectionsÚPool.expire_connectionse  s   é € ð 	×Ò˜AÕ×ùr:  c                	óö   € V P                   '       g?   V P                  '       d   \        P                  ! R 4      h\        P                  ! R4      hV P                  '       d   \        P                  ! R4      hR# )zipool is being initialized, but not yet ready: likely there is a race between creating a pool and using itzpool is not initializedr  N)r  r  r   r]   r  r}   s   &r   r�  ÚPool._check_inito  sf   € Ø× × Ð Ø×!×!Ð!Ü ×/Ò/ðó ð  ô ×+Ò+Ð,EÓFÐFØ�<�<ˆ<Ü×+Ò+Ð,<Ó=Ð=ñ r!   c                	ó€   € V P                    F-  pVP                  f   K  VP                  P                  4        K/  	  R # rk   )r   r\   Ú_drop_local_statement_cacher¯  s   & r   Ú_drop_statement_cacheÚPool._drop_statement_cachez  s*   € à—-”-ˆBØ�w‰wÔ"Ø—‘×3Ñ3Ö5ó  r!   c                	ó€   € V P                    F-  pVP                  f   K  VP                  P                  4        K/  	  R # rk   )r   r\   Ú_drop_local_type_cacher¯  s   & r   Ú_drop_type_cacheÚPool._drop_type_cache€  s*   € à—-”-ˆBØ�w‰wÔ"Ø—‘×.Ñ.Ö0ó  r!   c                	ó>   € V P                  4       P                  4       # rk   )r  Ú	__await__r}   s   &r   r¿  ÚPool.__await__†  s   € Ø×"Ñ"Ó$×.Ñ.Ó0Ð0r!   c              ƒ  	óB   "  € V P                  4       G R j  x€L
  V #  L5irk   )r  r}   s   &r   Ú
__aenter__ÚPool.__aenter__‰  s!   é € Ø×!Ñ!Ó#×#Ð#Øˆñ 	$ùó   ‚–—c              ‡  	óB   "  € V P                  4       G R j  x€L
  R #  L5irk   )r¦   )r   Úexcs   &*r   Ú	__aexit__ÚPool.__aexit__�  s   é € Ø�j‰j‹l×ÔùrÄ  )r  r  r  r	  r
  r  r“   r   r  r  r  rý   r´   r  r  r�   rÿ   rþ   r   r  rÅ   r�   )r   r´   rý   rþ   rÿ   r  r  rÅ   r	  r
  r   r  r  r  r  r  r  r“   r�   r�   r  r  rk   )+r+   r,   r-   r.   r/   r€   rn   r  r  rå   r&  r¥   rà   r?  rá   rD  rI  rM  r¤   r^  rc  ri  ro  rr  ru  rƒ  r‡  r�  r“  r»   rŸ  rÉ   r¦   r§  rÀ   r²  r�  r¸  r¼  r¿  rÂ  rÇ  r0   r*   r!   r   rð   rð   q  s
  † ñð€Ið_-Øð_-ð ð_-ð ð_-ð ð_-ð ô_-òB2ò.5òB+ò *òD-ò<òò	òòLô.ò0&ðPDð "&÷	Dð"Ið
 "&÷Ið&ð ð	ð
 ÷ð.>°!ð >¸Tô >ð°4ð Àdô ð"°dð Èô ð +ð
 ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð ð+ð  ô!+ðZ(ð
 ð(ð ð(ð ð(ð ð(ð ð(ð ð(ð ð(ð ð(ð ð(ð ô(ðT3ð
 ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð ð3ð  ð!3ð" ð#3ð$ ð%3ð& ð'3ð( ô)3ðjð
 ðð ðð ðð ôð:1 ô 1ò22ð2$9°4ô $9òL1"òf(ò	òò	>ò6ò1ò1òör!   rð   c                  óB   € ] tR tRtR
tR R ltR tRR R lltR tR	t	R# )r–  i‘  c               ó$   € V ^8„  d   QhRRRRRR/# )r7   r„   rð   r³   r¾   r=   rh   r*   )r>   s   "r   r?   ÚPoolAcquireContext.__annotate__•  s!   € ÷ ñ ˜Tð ¨Oð Àñ r!   c                	ó:   € Wn         W n        R V n        RV n        R # )NF)r„   r³   r   rê   )r   r„   r³   s   &&&r   rn   ÚPoolAcquireContext.__init__•  s   € ØŒ	ØŒØˆŒØˆŽ	r!   c              ƒ  	óö   "  € V P                   f   V P                  '       d   \        P                  ! R4      hV P                  P                  V P                  4      G R j  x€L
 V n         V P                   #  L5i)Nz a connection is already acquired)r   rê   r   r]   r„   rŸ  r³   r}   s   &r   rÂ  ÚPoolAcquireContext.__aenter__›  sV   é € Ø�?‰?Ò&¨$¯)¯)¨)Ü×+Ò+Ð,NÓOÐOØ $§	¡	× 2Ñ 2°4·<±<Ó @×@ˆŒØ�‰Ðñ Aùs   ‚ A9£>A9Á!A7Á"A9Nc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r7   Úexc_typezOptional[Type[BaseException]]Úexc_valzOptional[BaseException]Úexc_tbzOptional[TracebackType]r=   rh   r*   )r>   s   "r   r?   rË  ¡  s2   € ÷ 	%ñ 	%à/ð	%ð )ð	%ð (ð		%ð
 
ñ	%r!   c              ƒ  	óŒ   "  € R V n         V P                  pRV n        V P                  P                  V4      G Rj  x€L
  R#  L5i)TN)rê   r   r„   rÉ   )r   rÑ  rÒ  rÓ  rg   s   &&&& r   rÇ  ÚPoolAcquireContext.__aexit__¡  s6   é € ð ˆŒ	Ø�o‰oˆØˆŒØ�i‰i×Ñ Ó$×$Ô$ùs   ‚9A»A¼Ac                	óv   € R V n         V P                  P                  V P                  4      P	                  4       # )T)rê   r„   rŸ  r³   r¿  r}   s   &r   r¿  ÚPoolAcquireContext.__await__¬  s+   € ØˆŒ	Ø�y‰y×!Ñ! $§,¡,Ó/×9Ñ9Ó;Ð;r!   )r   rê   r„   r³   )r³   r   rê   r„   )NNN)
r+   r,   r-   r.   r€   rn   rÂ  rÇ  r¿  r0   r*   r!   r   r–  r–  ‘  s   † à9€Iõò÷	%ö<r!   r–  rñ   r  r  r…   iPÃ  r  g     Àr@r®   r‡   rò   rÆ   r  r  r  c               óJ   € \        V 3RVRVRVRVRVRVRV
RVR	VR
VRV	RV/VB # )uú  Create a connection pool.

Can be used either with an ``async with`` block:

.. code-block:: python

    async with asyncpg.create_pool(user='postgres',
                                   command_timeout=60) as pool:
        await pool.fetch('SELECT 1')

Or to perform multiple operations on a single connection:

.. code-block:: python

    async with asyncpg.create_pool(user='postgres',
                                   command_timeout=60) as pool:
        async with pool.acquire() as con:
            await con.execute('''
               CREATE TABLE names (
                  id serial PRIMARY KEY,
                  name VARCHAR (255) NOT NULL)
            ''')
            await con.fetch('SELECT 1')

Or directly with ``await`` (not recommended):

.. code-block:: python

    pool = await asyncpg.create_pool(user='postgres', command_timeout=60)
    con = await pool.acquire()
    try:
        await con.fetch('SELECT 1')
    finally:
        await pool.release(con)

.. warning::
    Prepared statements and cursors returned by
    :meth:`Connection.prepare() <asyncpg.connection.Connection.prepare>`
    and :meth:`Connection.cursor() <asyncpg.connection.Connection.cursor>`
    become invalid once the connection is released.  Likewise, all
    notification and log listeners are removed, and ``asyncpg`` will
    issue a warning if there are any listener callbacks registered on a
    connection that is being released to the pool.

:param str dsn:
    Connection arguments specified using as a single string in
    the following format:
    ``postgres://user:pass@host:port/database?option=value``.

:param \*\*connect_kwargs:
    Keyword arguments for the :func:`~asyncpg.connection.connect`
    function.

:param Connection connection_class:
    The class to use for connections.  Must be a subclass of
    :class:`~asyncpg.connection.Connection`.

:param type record_class:
    If specified, the class to use for records returned by queries on
    the connections in this pool.  Must be a subclass of
    :class:`~asyncpg.Record`.

:param int init_size:
    Number of connections the pool will be initialized with.  Defaults
    to *min_size*.  Must be between *min_size* and *max_size*.

:param int min_size:
    Minimum number of connections retained during idle periods.  Closed
    connections are replaced in the background to restore this floor.
    The pool may temporarily fall below it while reconnecting or while
    the server is unavailable.  Pass ``0`` to allow the pool to drain.

:param int max_size:
    Max number of connections in the pool.

:param int max_queries:
    Number of queries after a connection is closed and replaced
    with a new connection.

:param float max_inactive_connection_lifetime:
    Number of seconds after which inactive connections in the
    pool above *min_size* will be closed.  Pass ``0`` to disable this
    mechanism.

:param coroutine connect:
    A coroutine that is called instead of
    :func:`~asyncpg.connection.connect` whenever the pool needs to make a
    new connection.  Must return an instance of type specified by
    *connection_class* or :class:`~asyncpg.connection.Connection` if
    *connection_class* was not specified.

:param coroutine setup:
    A coroutine to prepare a connection right before it is returned
    from :meth:`Pool.acquire()`.  An example use
    case would be to automatically set up notifications listeners for
    all connections of a pool.

:param coroutine init:
    A coroutine to initialize a connection when it is created.
    An example use case would be to setup type codecs with
    :meth:`Connection.set_builtin_type_codec() <\
    asyncpg.connection.Connection.set_builtin_type_codec>`
    or :meth:`Connection.set_type_codec() <\
    asyncpg.connection.Connection.set_type_codec>`.

:param coroutine reset:
    A coroutine to reset a connection before it is returned to the pool by
    :meth:`Pool.release()`.  The function is supposed
    to reset any changes made to the database session so that the next
    acquirer gets the connection in a well-defined state.

    The default implementation calls :meth:`Connection.reset() <\
    asyncpg.connection.Connection.reset>`, which runs the following::

        SELECT pg_advisory_unlock_all();
        CLOSE ALL;
        UNLISTEN *;
        RESET ALL;

    The exact reset query is determined by detected server capabilities,
    and a custom *reset* implementation can obtain the default query
    by calling :meth:`Connection.get_reset_query() <\
    asyncpg.connection.Connection.get_reset_query>`.

:param loop:
    An asyncio event loop instance.  If ``None``, the default
    event loop will be used.

:return: An instance of :class:`~asyncpg.pool.Pool`.

.. versionchanged:: 0.10.0
   An :exc:`~asyncpg.exceptions.InterfaceError` will be raised on any
   attempted operation on a released connection.

.. versionchanged:: 0.13.0
   An :exc:`~asyncpg.exceptions.InterfaceError` will be raised on any
   attempted operation on a prepared statement or a cursor created
   on a connection that has been released to the pool.

.. versionchanged:: 0.13.0
   An :exc:`~asyncpg.exceptions.InterfaceWarning` will be produced
   if there are any active listeners (added via
   :meth:`Connection.add_listener()
   <asyncpg.connection.Connection.add_listener>`
   or :meth:`Connection.add_log_listener()
   <asyncpg.connection.Connection.add_log_listener>`) present on the
   connection at the moment of its release to the pool.

.. versionchanged:: 0.22.0
   Added the *record_class* parameter.

.. versionchanged:: 0.30.0
   Added the *connect* and *reset* parameters.

.. versionchanged:: 0.32.0
   The *min_size* parameter now defines the connection floor.  The former
   role of *min_size* â€” setting the initial pool size â€” is now handled by
   the new *init_size* parameter, which defaults to *min_size*.
r  r  rñ   r  r  r…   r  r®   r‡   rò   rÆ   r  )rð   )rL  rñ   r  r  r…   r  r®   r‡   rò   rÆ   r  r  r  r  s   &$$$$$$$$$$$$,r   Úcreate_poolrÙ  ±  s–   € ôZ Øñà)ðð "ðð ð	ð
 ðð ðð  ðð ðð ðð ðð ðð ðð *Jðð ñð r!   rk   )%Ú
__future__r   r%   Úcollections.abcr   r   rK   rG   ÚloggingÚtypesr   Útypingr   r   r	   rõ   r¨   Ú r
   r   r   r   Ú	getLoggerr+   r*  Ú	LifoQueuer   rT  r4   Ú_ConnectionProxyrd   rf   rð   r–  rD   rü   rÙ  r*   r!   r   Ú<module>rã     s5  ðõ #ã ß /Û Û Û Ý ß &Ñ &Û Û å Ý Ý Ý ð 
×	Ò	˜8Ó	$€ô! ×!2Ñ!2ô !ô$/˜dô /ôdO˜*×5Ñ5Ø$;Ø#õO÷Dl+ñ l+÷^]ñ ]÷@<ñ <ñ@|Øð|àð|ð ð|ð "ð	|ð
 27ð|ð ð|ð ð|ð ð|ð ð|ð ð|ð ",×!6Ñ!6ð|ð &Ÿ_™_÷|r!   