X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.extensions-module.html;fp=psycopg2%2Fdoc%2Fapi%2Fpublic%2Fpsycopg2.extensions-module.html;h=0000000000000000000000000000000000000000;hb=958a016698f676694ce8501dea6367f6604b6fc1;hp=4e974489d89856e20b24bfcbbda230d3e2cc5f9d;hpb=8711362afb2a503aff4694a4975e52c0df083688;p=plcapi.git diff --git a/psycopg2/doc/api/public/psycopg2.extensions-module.html b/psycopg2/doc/api/public/psycopg2.extensions-module.html deleted file mode 100644 index 4e97448..0000000 --- a/psycopg2/doc/api/public/psycopg2.extensions-module.html +++ /dev/null @@ -1,418 +0,0 @@ - - - - - psycopg2.extensions - - - - - - - - - - - - - - - - - - - -
- - Package psycopg2 :: - Module extensions -
-
- - -
[show private | hide private]
[frames | no frames]
- - -

Module psycopg2.extensions

- -

psycopg extensions to the DBAPI-2.0

-

This module holds all the extensions to the DBAPI-2.0 provided by psycopg.

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function Summary
objectadapt(obj, - protocol, - alternate) -
-adapt obj to given protocol
new AsIs wrapper objectAsIs(obj) -
new boolean valueBoolean(obj) -
new wrapperDateFromPy(datetime.date) -
new wrapperIntervalFromPy(datetime.timedelta) -
new type objectnew_type(oids, - name, - adapter) -
-Create a new binding object.
new quoted stringQuotedString(str, - enc) -
 register_adapter(typ, - callable) -
-Register 'callable' as an ISQLQuote adapter for type 'typ'.
Noneregister_type(obj) -
-register obj with psycopg type system
new wrapperTimeFromPy(datetime.time) -
new wrapperTimestampFromPy(datetime.datetime) -

- - - - - - - - - - - - - - - - -
Variable Summary
intISOLATION_LEVEL_AUTOCOMMIT = 0                                                                     
intISOLATION_LEVEL_READ_COMMITTED = 1                                                                     
intISOLATION_LEVEL_READ_UNCOMMITTED = 1                                                                     
intISOLATION_LEVEL_REPEATABLE_READ = 2                                                                     
intISOLATION_LEVEL_SERIALIZABLE = 2                                                                     

- - - - - - -
Function Details
- - -
-

adapt(obj, - protocol, - alternate) -

-

adapt obj to given protocol

-
-
Returns:
-
-object
-
-
-
- - -
-

AsIs(obj) -

-
-
Returns:
-
-new AsIs wrapper object
-
-
-
- - -
-

Boolean(obj) -

-
-
Returns:
-
-new boolean value
-
-
-
- - -
-

DateFromPy(datetime.date) -

-
-
Returns:
-
-new wrapper
-
-
-
- - -
-

IntervalFromPy(datetime.timedelta) -

-
-
Returns:
-
-new wrapper
-
-
-
- - -
-

new_type(oids, - name, - adapter) -

-

Create a new binding object. The object can be used with the -register_type() function to bind PostgreSQL objects to python objects.

-
-
Parameters:
-
oids - - Tuple of oid of the PostgreSQL types to convert. -
-
name - - Name for the new type -
-
adapter - - Callable to perform type conversion. -It must have the signature fun(value, cur) where value is -the string representation returned by PostgreSQL (None if NULL) -and cur is the cursor from which data are read. -
-
-
Returns:
-
-new type object
-
-
-
- - -
-

QuotedString(str, - enc) -

-
-
Returns:
-
-new quoted string
-
-
-
- - -
-

register_adapter(typ, - callable) -

-

Register 'callable' as an ISQLQuote adapter for type 'typ'.

-
-
-
- - -
-

register_type(obj) -

-

register obj with psycopg type system

-
-
Parameters:
-
obj - - A type adapter created by new_type() -
-
-
Returns:
-
-None
-
-
-
- - -
-

TimeFromPy(datetime.time) -

-
-
Returns:
-
-new wrapper
-
-
-
- - -
-

TimestampFromPy(datetime.datetime) -

-
-
Returns:
-
-new wrapper
-
-
-
-
- - - - - - -
Variable Details
-
- -

ISOLATION_LEVEL_AUTOCOMMIT

-
-
-
-
-
Type:
-
- int - -
-
Value:
-
-
-0                                                                     
-
-
-
-
-
- -

ISOLATION_LEVEL_READ_COMMITTED

-
-
-
-
-
Type:
-
- int - -
-
Value:
-
-
-1                                                                     
-
-
-
-
-
- -

ISOLATION_LEVEL_READ_UNCOMMITTED

-
-
-
-
-
Type:
-
- int - -
-
Value:
-
-
-1                                                                     
-
-
-
-
-
- -

ISOLATION_LEVEL_REPEATABLE_READ

-
-
-
-
-
Type:
-
- int - -
-
Value:
-
-
-2                                                                     
-
-
-
-
-
- -

ISOLATION_LEVEL_SERIALIZABLE

-
-
-
-
-
Type:
-
- int - -
-
Value:
-
-
-2                                                                     
-
-
-
-
-
- - - - - - - - - - - - - - - - - - -
- -