Package psycopg2 :: Module psycopg1
[show private | hide private]
[frames | no frames]

Module psycopg2.psycopg1

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

Classes
connection psycopg 1.1.x connection.
cursor psycopg 1.1.x cursor.

Function Summary
new psycopg 1.1.x compatible connection object connect(dsn, ...)

Function Details

connect(dsn, ...)

Returns:
new psycopg 1.1.x compatible connection object