Home | Trees | Index | Help |
---|
|
object
--+
|
connection
connection
,
DictConnection
connection(dsn, ...) -> new connection object
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
__new__(T,
S,
...)
Return a new object with type S, a subtype of T... | |
__repr__(x)
Return repr(x)... | |
__str__(x)
Return str(x)... | |
Close the connection. | |
Commit all changes to database. | |
extensions.cursor |
new cursor |
Roll back all changes done to database. | |
Set client encoding to encoding. | |
Switch isolation level to level. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
closed : True if the connection is closed. | |
dsn : The current connection string. | |
encoding : The current client encoding. | |
isolation_level : The current isolation level. | |
notices | |
notifies | |
DBAPI-2.0 errors | |
Error : Base class for error exceptions. | |
Warning : A database warning. | |
InterfaceError : Error related to the database interface. | |
DatabaseError : Error related to the database engine. | |
InternalError : The database encountered an internal error. | |
OperationalError : Error related to database operation (disconnect, memory allocation etc). | |
ProgrammingError : Error related to database programming (SQL error, table not found etc). | |
IntegrityError : Error related to database integrity. | |
DataError : Error related to problems with the processed data. | |
NotSupportedError : A not supported datbase API was called. |
Method Details |
---|
__init__(...)
|
__new__(T, S, ...)
|
__repr__(x)
|
__str__(x)
|
close()Close the connection. |
commit()Commit all changes to database. |
cursor(cursor_factory=extensions.cursor)new cursor Return a new cursor. The cursor_factory argument can be used to
create non-standard cursors by passing a class different from the
default. Note that the new class should be a sub-class of
|
rollback()Roll back all changes done to database. |
set_client_encoding(encoding)Set client encoding to encoding. |
set_isolation_level(level)Switch isolation level to level. |
Property Details |
---|
ErrorBase class for error exceptions. |
WarningA database warning. |
InterfaceErrorError related to the database interface. |
DatabaseErrorError related to the database engine. |
InternalErrorThe database encountered an internal error. |
OperationalErrorError related to database operation (disconnect, memory allocation etc). |
ProgrammingErrorError related to database programming (SQL error, table not found etc). |
IntegrityErrorError related to database integrity. |
DataErrorError related to problems with the processed data. |
NotSupportedErrorA not supported datbase API was called. |
closedTrue if the connection is closed. |
dsnThe current connection string. |
encodingThe current client encoding. |
isolation_levelThe current isolation level. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Jan 14 01:42:31 2006 | http://epydoc.sf.net |