
    	i                     0   d dl mZ d dlZd dlZdZdZdZ G d de          Z eej	        ej
        ej        ej        ej        g          Z eej        ej        ej        ej        ej        g          Z eej        ej        ej        ej        ej        ej        ej        ej        ej        ej        g
          Z eej        g          Z eej         g          Z  eej!        ej"        g          xZ!Z" e            Z#d Z$d	 Z%d
 Z&d Z'd Z(d Z)d Z*dS )    )
FIELD_TYPENz2.0qmarkTc                       e Zd ZdZd ZdS )	DbApiTypea  
    Immutable set for type checking

    By default the following sets are defined:

    - BINARY: for binary field types
    - NUMBER: for numeric field types
    - STRING: for character based (string) field types
    - DATE: for date field type(s)
    - DATETIME: for datetime and timestamp field type(s)
    - TIME: for time field type(s)
    - TIMESTAMP: for datetime and timestamp field type(s)


    Example:
    >>> FIELD_TYPE.GEOMETRY == mariadb.BINARY
    True
    >>> FIELD_TYPE.FLOAT == mariadb.BINARY
    False
    c                 `    t          |t                    r|                     |           S || v S )N)
isinstancer   
difference)self
field_types     G/srv/django_bis/venv311/lib/python3.11/site-packages/mariadb/dbapi20.py__eq__zDbApiType.__eq__"   s4    z9-- 	3z2222T!!    N)__name__
__module____qualname____doc__r    r   r   r   r      s-         *" " " " "r   r   c                      t          |           S )z7Constructs an object capable of holding a binary value.)bytes)objects    r   Binaryr   F   s    ==r   c                 .    t          j        | ||          S )z*Constructs an object holding a date value.)datetimedate)yearmonthdays      r   Dater   K   s    =uc***r   c                 .    t          j        | ||          S )z*Constructs an object holding a time value.)r   time)hourminuteseconds      r   Timer$   P   s    =vv...r   c                 4    t          j         | |||||          S )z.Constructs an object holding a datetime value.)r   )r   r   r   r!   r"   r#   s         r   	Timestampr&   U   s    T5#tVVDDDr   c                 H    t          t          j        |           dd          S )zConstructs an object holding a date value from the given ticks value
       (number of seconds since the epoch).
       For more information see the documentation of the standard Python
       time module.N   )r   r    	localtimetickss    r   DateFromTicksr,   Z   s"    
 &&rr*++r   c                 H    t          t          j        |           dd          S )zConstructs an object holding a time value from the given ticks value
       (number of seconds since the epoch).
       For more information see the documentation of the standard Python
       time module.r(      )r$   r    r)   r*   s    r   TimeFromTicksr/   b   s"    
 &&qs+,,r   c                 R    t          j         t          j        |           dd          S )zConstructs an object holding a datetime value from the given ticks value
       (number of seconds since the epoch).
       For more information see the documentation of the standard Python
       time module.Nr.   )r   r    r)   r*   s    r   TimestampFromTicksr1   j   s%    
 dnU33BQB788r   )+mariadb.constantsr   r    r   apilevel
paramstylethreadsafety	frozensetr   GEOMETRY	LONG_BLOBMEDIUM_BLOB	TINY_BLOBBLOBBINARYENUMJSONSTRINGVARCHAR
VAR_STRINGDECIMALDOUBLEFLOATINT24LONGLONGLONG
NEWDECIMALSHORTTINYYEARNUMBERDATETIMEDATETIME	TIMESTAMPROWIDr   r   r$   r&   r,   r/   r1   r   r   r   <module>rR      s   ( ( ( ( ( (  
" " " " "	 " " "8 
J'(*(O	% 
& 
& 
JOO%&)	+ 
, 
, 
J&%$$O')$OO	% 	
& 	
& y*/"##y*/"## y*"5!+!5"7 8 8 89	  
+ + +
/ / /
E E E
, , ,- - -9 9 9 9 9r   