U
    Ú²g›  ã                   @   s¦   d Z ddlmZmZ ddlmZmZ ddlmZ G dd„ deƒZ	G dd	„ d	eƒZ
G d
d„ deeƒZG dd„ deƒZejejjejejjiZejjejejjejiZdS )zs
Enum values for psycopg

These values are defined by us and are not necessarily dependent on
libpq-defined enums.
é    )ÚEnumÚIntEnum)Ú
EVENT_READÚEVENT_WRITEé   )Úpqc                   @   s   e Zd ZeZeZeeB ZdS )ÚWaitN)Ú__name__Ú
__module__Ú__qualname__r   ÚRr   ÚWÚRW© r   r   ú2/tmp/pip-unpacked-wheel-b_ea6rx_/psycopg/_enums.pyr      s   r   c                   @   s    e Zd ZdZeZeZeeB ZdS )ÚReadyr   N)	r	   r
   r   ÚNONEr   r   r   r   r   r   r   r   r   r      s   r   c                   @   sL   e Zd ZdZdZdZdZdZeej	d dœdd„ƒZ
ed ej	dœd	d
„ƒZdS )ÚPyFormatzŸ
    Enum representing the format wanted for a query argument.

    The value `AUTO` allows psycopg to choose the best format for a certain
    parameter.
    zpsycopg.adaptÚsÚtÚb)ÚfmtÚreturnc                 C   s   t | S ©N)Ú_pg2py©Úclsr   r   r   r   Úfrom_pq.   s    zPyFormat.from_pqc                 C   s   t | S r   )Ú_py2pgr   r   r   r   Úas_pq2   s    zPyFormat.as_pqN)r	   r
   r   Ú__doc__ZAUTOÚTEXTÚBINARYÚclassmethodr   ÚFormatr   r   r   r   r   r   r      s   r   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚIsolationLevelzB
    Enum representing the isolation level for a transaction.
    Zpsycopgr   é   é   é   N)r	   r
   r   r    ZREAD_UNCOMMITTEDZREAD_COMMITTEDZREPEATABLE_READZSERIALIZABLEr   r   r   r   r%   7   s   r%   N)r    Úenumr   r   Ú	selectorsr   r   Ú r   r   r   Ústrr   r%   r!   r$   r"   r   r   r   r   r   r   Ú<module>   s"   	  þ  þ