
    -hv                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr   " S S	\R                  5      r
 " S
 S\5      r " S S\5      r\rg)a  
.. dialect:: postgresql+pypostgresql
    :name: py-postgresql
    :dbapi: pypostgresql
    :connectstring: postgresql+pypostgresql://user:password@host:port/dbname[?key=value&key=value...]
    :url: https://python.projects.pgfoundry.org/

.. note::

    The pypostgresql dialect is **not tested as part of SQLAlchemy's continuous
    integration** and may have unresolved issues.  The recommended PostgreSQL
    driver is psycopg2.

.. deprecated:: 1.4 The py-postgresql DBAPI is deprecated and will be removed
   in a future version. This DBAPI is superseded by the external
    version available at external-dialect_. Please use the external version or
    one of the supported DBAPIs to connect to PostgreSQL.

.. TODO update link
.. _external-dialect: https://github.com/PyGreSQL

   )	PGDialect)PGExecutionContext   )
processors)types)utilc                        \ rS rSrS rS rSrg)	PGNumeric%   c                 "    [         R                  $ N)r   to_str)selfdialects     ڀC:\Users\ROHAN GUPTA\OneDrive\Desktop\mathbuddy-assessment\venv\Lib\site-packages\sqlalchemy/dialects/postgresql/pypostgresql.pybind_processorPGNumeric.bind_processor&   s           c                 F    U R                   (       a  g [        R                  $ r   )	asdecimalr   to_float)r   r   coltypes      r   result_processorPGNumeric.result_processor)   s    >>&&&r    N)__name__
__module____qualname____firstlineno__r   r   __static_attributes__r   r   r   r
   r
   %   s    !'r   r
   c                       \ rS rSrSrg)PGExecutionContext_pypostgresql0   r   N)r   r   r   r   r    r   r   r   r"   r"   0   s    r   r"   c                       \ rS rSrSrSrSrSrSrSr	Sr
Sr\r\R                  " \R"                  \R&                  \\R*                  \R*                  05      r\S 5       r/ SQr\R2                  S	 5       rS
 rS rSrg)PGDialect_pypostgresql4   pypostgresqlTNpyformatFc                 <    SSK Jn  [        R                  " SSS9  U$ )N    )dbapi20zThe py-postgresql DBAPI is deprecated and will be removed in a future version. This DBAPI is superseded by the externalversion available at https://github.com/PyGreSQL. Please use one of the supported DBAPIs to connect to PostgreSQL.z1.4)version)postgresql.driverr+   r   warn_deprecated)clsr+   s     r   dbapiPGDialect_pypostgresql.dbapiL   s'    - 	H 	
 r   )	ErrorInterfaceErrorDatabaseError	DataErrorOperationalErrorIntegrityErrorInternalErrorProgrammingErrorNotSupportedErrorc                 `   ^  T R                   c  0 $ [        U 4S jT R                   5       5      $ )Nc              3   h   >#    U  H'  n[        TR                  U5      R                  U4v   M)     g 7fr   )getattrr0   r   ).0namer   s     r   	<genexpr>IPGDialect_pypostgresql.dbapi_exception_translation_map.<locals>.<genexpr>l   s.      
/ TZZ&//6/s   /2)r0   dict_DBAPI_ERROR_NAMES)r   s   `r   dbapi_exception_translation_map6PGDialect_pypostgresql.dbapi_exception_translation_mapg   s2    ::I 
//
 
 	
r   c                     UR                  SS9nSU;   a  [        US   5      US'   OSUS'   UR                  UR                  5        / U4$ )Nuser)usernameporti8  )translate_connect_argsintupdatequery)r   urloptss      r   create_connect_args*PGDialect_pypostgresql.create_connect_argsq   sQ    ))6):T>tF|,DLDLCIIDzr   c                     S[        U5      ;   $ )Nzconnection is closed)str)r   e
connectioncursors       r   is_disconnect$PGDialect_pypostgresql.is_disconnectz   s    %Q//r   r   )r   r   r   r   driversupports_statement_cachesupports_unicode_statementssupports_unicode_bindsdescription_encodingdefault_paramstylesupports_sane_rowcountsupports_sane_multi_rowcountr"   execution_ctx_clsr   update_copyr   colspecssqltypesNumericr
   Floatclassmethodr0   rC   memoized_propertyrD   rP   rW   r    r   r   r   r%   r%   4   s    F#"&!# "#( 7iNNHNN	
H  
 

 
0r   r%   N)__doc__baser   r    r   r   rd   r   re   r
   r"   r%   r   r   r   r   <module>rl      sP   .  $  ! '   '	&8 	G0Y G0T !r   