HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyc
�
���ec@s�dZddlmZddlmZddlmZddlmZddlmZdej	fd	��YZ
d
efd��YZdefd
��YZeZ
dS(s
.. 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

i(t	PGDialect(tPGExecutionContexti(t
processors(ttypes(tutilt	PGNumericcBseZd�Zd�ZRS(cCstjS(N(Rtto_str(tselftdialect((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pytbind_processor&scCs|jr
dStjSdS(N(t	asdecimaltNoneRtto_float(RRtcoltype((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pytresult_processor)s	(t__name__t
__module__R	R(((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyR%s	tPGExecutionContext_pypostgresqlcBseZRS((RR(((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyR0stPGDialect_pypostgresqlc	Bs�eZdZeZeZeZdZdZ	eZ
eZe
Zejejieej6ejej6�Zed��Zddddddd	d
dg	Zejd��Zd
�Zd�ZRS(tpypostgresqltpyformatcCs'ddlm}tjddd�|S(Ni����(tdbapi20s�The 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.tversions1.4(tpostgresql.driverRRtwarn_deprecated(tclsR((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pytdbapiLs
tErrortInterfaceErrort
DatabaseErrort	DataErrortOperationalErrortIntegrityErrort
InternalErrortProgrammingErrortNotSupportedErrorcs0�jdkriSt�fd��jD��S(Nc3s*|] }t�j|�j|fVqdS(N(tgetattrRR(t.0tname(R(s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pys	<genexpr>ms(RRtdictt_DBAPI_ERROR_NAMES(R((Rs\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pytdbapi_exception_translation_mapgs
cCsY|jdd�}d|kr5t|d�|d<n
d|d<|j|j�g|fS(Ntusernametusertporti8(ttranslate_connect_argstinttupdatetquery(Rturltopts((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pytcreate_connect_argsqs
cCsdt|�kS(Nsconnection is closed(tstr(Rtet
connectiontcursor((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyt
is_disconnectzsN(RRtdrivertTruetsupports_statement_cachetsupports_unicode_statementstsupports_unicode_bindsRtdescription_encodingtdefault_paramstyletsupports_sane_rowcounttFalsetsupports_sane_multi_rowcountRtexecution_ctx_clsRtupdate_copyRtcolspecsRtsqltypestNumerictFloattclassmethodRR(tmemoized_propertyR)R3R8(((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyR4s6
	
		N(t__doc__tbaseRRtRRRFRRGRRRR(((s\/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.pyt<module>sJ