o
    ª›h«
  ã                   @   sÀ   d Z ddlZddlmZmZmZmZmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ dd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Z dd„ Z!dd„ Z"de Z#dS )z¯adodbapi - A python DB API 2.0 (PEP 249) interface to Microsoft ADO

Copyright (C) 2002 Henrik Ekelund, version 2.1 by Vernon Cole
* https://sourceforge.net/projects/adodbapi
é    Né   )Ú
ConnectionÚCursorÚ__version__ÚconnectÚdateconverter)ÚBINARYÚDATETIMEÚNUMBERÚROWIDÚSTRINGÚDatabaseErrorÚ	DataErrorÚErrorÚFetchFailedErrorÚIntegrityErrorÚInterfaceErrorÚInternalErrorÚNotSupportedErrorÚOperationalErrorÚProgrammingErrorÚWarningÚapilevelÚ
paramstyleÚthreadsafetyc                 C   s   t | ƒS )zSThis function constructs an object capable of holding a binary (long) string value.)Úbytes)ZaString© r   úGc:\Users\shubh\Videos\agent\nova\Lib\site-packages\adodbapi/__init__.pyÚBinary)   s   r   c                 C   ó   t  | ||¡S )z8This function constructs an object holding a date value.)r   ÚDate)ÚyearÚmonthÚdayr   r   r   r    .   ó   r    c                 C   r   )z8This function constructs an object holding a time value.)r   ÚTime)ÚhourÚminuteÚsecondr   r   r   r%   3   r$   r%   c                 C   s   t  | |||||¡S )z>This function constructs an object holding a time stamp value.)r   Ú	Timestamp)r!   r"   r#   r&   r'   r(   r   r   r   r)   8   s   r)   c                 C   ó   t t | ¡dd… Ž S )zÆThis function constructs an object holding a date value from the given ticks value
    (number of seconds since the epoch; see the documentation of the standard Python time module for details).
    Né   )r    ÚtimeÚgmtime©Zticksr   r   r   ÚDateFromTicks=   ó   r/   c                 C   r*   )zÆThis function constructs an object holding a time value from the given ticks value
    (number of seconds since the epoch; see the documentation of the standard Python time module for details).
    r+   é   )r%   r,   r-   r.   r   r   r   ÚTimeFromTicksD   r0   r2   c                 C   r*   )zËThis function constructs an object holding a time stamp value from the given
    ticks value (number of seconds since the epoch;
    see the documentation of the standard Python time module for details).Nr1   )r)   r,   r-   r.   r   r   r   ÚTimestampFromTicksK   r0   r3   z
adodbapi v)$Ú__doc__r,   Zadodbapir   r   r   r   r   Zapibaser   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r%   r)   r/   r2   r3   Úversionr   r   r   r   Ú<module>   s   T