ó
    Ð]jˆ  ã                  ó,  • % S r SSKJr  SSKrSSKrSSKJr  SSKJr  SSK	J
r
JrJrJrJr  SSKJrJrJrJrJr  SS	KJrJrJrJr  \R2                  " \5      rS
\S'    S\S'    S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   SS jr\" 5         Srg)zò
psycopg libpq wrapper

This package exposes the libpq functionalities as Python objects and functions.

The real implementation (the binding to the C library) is
implementation-dependant but all the implementations share the same interface.
é    )ÚannotationsN)ÚCallableé   )Úabc)ÚConninfoOptionÚPGnotifyÚPGresAttDescÚerror_messageÚversion_pretty)Ú
ConnStatusÚDiagnosticFieldÚ
ExecStatusÚFormatÚPing)ÚPipelineStatusÚPollingStatusÚTraceÚTransactionStatusÚstrÚ__impl__ÚintÚ__build_version__zCallable[[], int]Úversionztype[abc.PGconn]ÚPGconnztype[abc.PGresult]ÚPGresultztype[abc.Conninfo]ÚConninfoztype[abc.Escaping]ÚEscapingztype[abc.PGcancel]ÚPGcancelztype[abc.PGcancelConn]ÚPGcancelConnc                 ó4  ^^• [         R                  R                  SS5      R                  5       mSn / mSUU4S jjnT(       a  TS:X  a   SSKJn   U (       d  T(       a  TS:X  a   SSKJn   U (       d  T(       a  TS	:X  a   S
SKJ	n   U (       am  U R                  q
U R                  qU R                  qU R                  qU R                  qU R                  qU R                   qU R"                  qU R$                  qgT(       a  ['        ST S35      eSR)                  S T 5       5      n['        SU 35      e! [         a  nU" SU5         SnANþSnAff = f! [         a  nU" SU5         SnAGNSnAff = f! [         a  nU" S	U5         SnAGN
SnAff = f)z¾
Import pq objects implementation from the best libpq wrapper available.

If an implementation is requested try to import only it, otherwise
try to import the best implementation available.
ÚPSYCOPG_IMPLÚ Nc                ón   >• T(       d  SU  SU 3nTR                  U5        g SU  SU 3n[        U5      Ue)Nzcouldn't import psycopg 'z' implementation: z#couldn't import requested psycopg ')ÚappendÚImportError)ÚnameÚeÚmsgÚattemptsÚimpls      €€ÚP/home/mande/repo/quber/.venv/lib/python3.13/site-packages/psycopg/pq/__init__.pyÚhandle_errorÚ'import_from_libpq.<locals>.handle_errorA   sF   ø€ ÞØ-¨d¨VÐ3EÀaÀSÐIˆCØ�O‰O˜CÕ à7¸°vÐ=OÐPQÈsÐSˆCÜ˜cÓ"¨Ð)ó    Úcr   )ÚpqÚbinaryÚpythonr   )Ú	pq_ctypesz"requested psycopg implementation 'z	' unknownÚ
c              3  ó,   #   • U  H
  nS U 3v •  M     g7f)z- N© )Ú.0Úattempts     r+   Ú	<genexpr>Ú$import_from_libpq.<locals>.<genexpr>k   s   é € ÐEºH°  7 )�nºHùs   ‚z(no pq wrapper available.
Attempts made:
)r&   r   r'   Ú	ExceptionÚreturnÚNone)ÚosÚenvironÚgetÚlowerÚ	psycopg_cr0   r;   Úpsycopg_binaryr"   r3   r   r   r   r   r   r   r   r   r   r%   Újoin)Úmoduler,   r'   Ú	sattemptsr)   r*   s       @@r+   Úimport_from_libpqrG   2   su  ù€ ô �:‰:�>‰>˜.¨"Ó-×3Ñ3Ó5€DØ€FØ€H÷*ð *ö �4˜3“;ð	!Ý.ö
 ž4 4¨8Ó#3ð	&Ý3ö
 ž4 4¨8Ó#3ð	&Ý-ö Ø—?‘?ˆØ—.‘.ˆØ—‘ˆØ—?‘?ˆØ—?‘?ˆØ—?‘?ˆØ—?‘?ˆØ×*Ñ*ˆØ"×4Ñ4ÑÞ	ÜÐ>¸t¸fÀIÐNÓOÐOà—I‘IÑE¹HÓEÓEˆ	Üð ð €ðó ð 	øô? ó 	!Ù˜˜a× Ñ ûð	!ûô ó 	&Ù˜ 1×%Ò%ûð	&ûô ó 	&Ù˜ 1×%Ò%ûð	&úsH   ÁD8 Á'E ÂE9 Ä8
EÅ	EÅEÅ
E6Å"	E1Å1E6Å9
FÆ	FÆF)r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r   r   )r<   r=   )Ú__doc__Ú
__future__r   r>   ÚloggingÚcollections.abcr   r"   r   Úmiscr   r   r	   r
   r   Ú_enumsr   r   r   r   r   r   r   r   r   Ú	getLoggerÚ__name__ÚloggerÚ__annotations__rG   Ú__all__r6   r.   r+   Ú<module>rS      s•   ðòõ #ã 	Û Ý $å ß WÕ Wß IÕ Iß KÓ Kà	×	Ò	˜8Ó	$€à
ƒðð
 Ó ðð 
Ó ØÓ Ø
Ó Ø
Ó Ø
Ó Ø
Ó Ø$Ó $ô=ñ@ Ô ð�r.   