| Home | Trees | Index | Help |
|---|
|
|
psycopg extensions to the DBAPI-2.0
This module holds all the extensions to the DBAPI-2.0 provided by psycopg.
connection -- the new-type inheritable connection classcursor -- the new-type inheritable cursor classadapt() -- exposes the PEP-246 compatible adapting mechanism used
by psycopg to adapt Python types to PostgreSQL ones| Function Summary | |
|---|---|
| object |
adapt obj to given protocol |
| new AsIs wrapper object | AsIs(obj)
|
| new boolean value | Boolean(obj)
|
| new wrapper | DateFromPy(datetime.date)
|
| new wrapper | IntervalFromPy(datetime.timedelta)
|
| new type object |
Create a new binding object. |
| new quoted string | QuotedString(str,
enc)
|
Register 'callable' as an ISQLQuote adapter for type 'typ'. | |
| None |
register obj with psycopg type system |
| new wrapper | TimeFromPy(datetime.time)
|
| new wrapper | TimestampFromPy(datetime.datetime)
|
| Variable Summary | |
|---|---|
int |
ISOLATION_LEVEL_AUTOCOMMIT = 0 |
int |
ISOLATION_LEVEL_READ_COMMITTED = 1 |
int |
ISOLATION_LEVEL_READ_UNCOMMITTED = 1 |
int |
ISOLATION_LEVEL_REPEATABLE_READ = 2 |
int |
ISOLATION_LEVEL_SERIALIZABLE = 2 |
| Function Details |
|---|
adapt(obj, protocol, alternate)adapt obj to given protocol
|
AsIs(obj)
|
Boolean(obj)
|
DateFromPy(datetime.date)
|
IntervalFromPy(datetime.timedelta)
|
new_type(oids, name, adapter)Create a new binding object. The object can be used with the
|
QuotedString(str, enc)
|
register_adapter(typ, callable)Register 'callable' as an ISQLQuote adapter for type 'typ'. |
register_type(obj)register obj with psycopg type system
|
TimeFromPy(datetime.time)
|
TimestampFromPy(datetime.datetime)
|
| Variable Details |
|---|
ISOLATION_LEVEL_AUTOCOMMIT
|
ISOLATION_LEVEL_READ_COMMITTED
|
ISOLATION_LEVEL_READ_UNCOMMITTED
|
ISOLATION_LEVEL_REPEATABLE_READ
|
ISOLATION_LEVEL_SERIALIZABLE
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Jan 14 01:42:32 2006 | http://epydoc.sf.net |