
    iJ                         d dl Z d dlmZ ddlmZ dedefdZded	ed
ede j        fdZ	de
de j        fdZdedededdfdZde
ddfdZ	 	 	 dded	ed
edededede j         fdZde
de j         fdZdS )    N)Any   )errorsvaluereturnc                      t          |           S )zD
    Constructs an object holding a binary (long) string value.
    )bytes)r   s    e/var/www/html/Pagina-Ingenieria-Requisitos/venv/lib/python3.11/site-packages/oracledb/constructors.pyBinaryr   %   s     <<    yearmonthdayc                 .    t          j        | ||          S )z4
    Constructs an object holding a date value.
    )datetimedate)r   r   r   s      r
   Dater   ,   s     =uc***r   ticksc                 @    t           j                            |           S )z
    Constructor mandated by the database API for creating a date value given
    the number of seconds since the epoch (January 1, 1970). This is equivalent
    to using datetime.date.fromtimestamp() and that should be used instead.
    )r   r   fromtimestampr   s    r
   DateFromTicksr   3   s     =&&u---r   hourminutesecondc                 B    t          j        t           j                   dS )z
    Constructor mandated by the database API for creating a time value. Since
    Oracle doesn't support time only values, an exception is raised when this
    method is called.
    Nr   
_raise_errERR_TIME_NOT_SUPPORTED)r   r   r   s      r
   Timer    <   s     f344444r   c                 B    t          j        t           j                   dS )z
    Constructor mandated by the database API for creating a time value given
    the number of seconds since the epoch (January 1, 1970). Since Oracle
    doesn't support time only values, an exception is raised when this method
    is called.
    Nr   r   s    r
   TimeFromTicksr"   E   s     f344444r   c                 4    t          j         | |||||          S )z:
    Constructs an object holding a time stamp value.
    )r   )r   r   r   r   r   r   s         r
   	Timestampr$   O   s     T5#tVVDDDr   c                 @    t           j                             |           S )z
    Constructor mandated by the database API for creating a timestamp value
    given the number of seconds since the epoch (January 1, 1970). This is
    equivalent to using datetime.datetime.fromtimestamp() and that should be
    used instead.
    )r   r   r   s    r
   TimestampFromTicksr&   ]   s     **5111r   )r   r   r   )r   typingr    r   r	   r   intr   r   floatr   r    r"   r$   r&    r   r
   <module>r,      s  >             # %    +s +3 +S +X] + + + +. .8= . . . .5s 5C 5 5 5 5 5 55 54 5 5 5 5 E E
EE 
E 	E
 E E E E E E2e 2(9 2 2 2 2 2 2r   