o
    PD©iJ  ã                   @   sÖ   d dl Z d dlmZ ddlmZ dedefdd„Zd	ed
edede jfdd„Z	de
de jfdd„Zdedededdfdd„Zde
ddfdd„Z	 	 	 dd	ed
ededededede j fdd„Zde
de j fdd„ZdS )é    N)ÚAnyé   )ÚerrorsÚvalueÚreturnc                 C   s   t | ƒS )zD
    Constructs an object holding a binary (long) string value.
    )Úbytes)r   © r   úN/var/www/Datamplify/venv/lib/python3.10/site-packages/oracledb/constructors.pyÚBinary%   s   r
   ÚyearÚmonthÚdayc                 C   s   t  | ||¡S )z4
    Constructs an object holding a date value.
    )ÚdatetimeÚdate)r   r   r   r   r   r	   ÚDate,   s   r   Úticksc                 C   s   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   r   r   r	   ÚDateFromTicks3   s   r   ÚhourÚminuteÚsecondc                 C   ó   t  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   r   r   r	   ÚTime<   s   r   c                 C   r   )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   r   r   r	   ÚTimeFromTicksE   s   r   c                 C   s   t   | |||||¡S )z:
    Constructs an object holding a time stamp value.
    )r   )r   r   r   r   r   r   r   r   r	   Ú	TimestampO   s   r   c                 C   s   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   r   r   r	   ÚTimestampFromTicks]   s   r   )r   r   r   )r   Útypingr   Ú r   r   r
   Úintr   r   Úfloatr   r   r   r   r   r   r   r   r	   Ú<module>   s6   		úÿþýüûú
ù