%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/psycopg2/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyo

�
Tc@s�dZddlZddlmZddlmZddlTddlj	Z
eZd�Zdefd��YZd	efd
��YZdS(s)psycopg 1.1.x compatibility module

This module uses the new style connection and cursor types to build a psycopg
1.1.1.x compatibility layer. It should be considered a temporary hack to run
old code while porting to psycopg 2. Import it as follows::

    from psycopg2 import psycopg1 as psycopg
i����N(tcursor(t
connection(t*cOs-t|d<t||�}|jtj�|S(sCconnect(dsn, ...) -> new psycopg 1.1.x compatible connection objecttconnection_factory(Rt	_2connecttset_isolation_levelt_exttISOLATION_LEVEL_READ_COMMITTED(targstkwargstconn((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pytconnect's
RcBs#eZdZd�Zdd�ZRS(spsycopg 1.1.x connection.cCstj|dt�S(s6cursor() -> new psycopg 1.1.x compatible cursor objecttcursor_factory(t_2connectionR(tself((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyR1sicCs3|dkr|jtj�n|jtj�dS(s;autocommit(on_off=1) -> switch autocommit on (1) or off (0)iN(RRtISOLATION_LEVEL_AUTOCOMMITR(Rton_off((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyt
autocommit5s(t__name__t
__module__t__doc__RR(((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyR.s	RcBs2eZdZd�Zd�Zd�Zd�ZRS(s�psycopg 1.1.x cursor.

    Note that this cursor implements the exact procedure used by psycopg 1 to
    build dictionaries out of result rows. The DictCursor in the
    psycopg.extras modules implements a much better and faster algorithm.
    cCsCi}x6tt|j��D]}||||j|d<qW|S(Ni(trangetlentdescription(Rtrowtresti((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyt__build_dictEscCs*tj|�}|r"|j|�S|SdS(N(t_2cursortfetchonet_cursor__build_dict(RR((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pytdictfetchoneKs
cCsCg}tj||�}x$|D]}|j|j|��qW|S(N(Rt	fetchmanytappendR(RtsizeRtrowsR((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyt
dictfetchmanyRs

cCs@g}tj|�}x$|D]}|j|j|��qW|S(N(RtfetchallR!R(RRR#R((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pytdictfetchallYs

(RRRRRR$R&(((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyR=s
			(
Rt_psycopgt	_2psycopgtpsycopg2.extensionsRRRR
tpsycopg2t
extensionsRRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyt<module>s
	

Zerion Mini Shell 1.0