I represent a pool of connections to a DB-API 2.0 compliant database.
Methods
|
|
|
|
__getstate__
|
__getstate__ ( self )
|
|
__init__
|
__init__ (
self,
dbapiName,
*connargs,
*connkw,
)
See ConnectionPool.__doc__
|
|
__setstate__
|
__setstate__ ( self, state )
|
|
_runInteraction
|
_runInteraction (
self,
interaction,
*args,
*kw,
)
|
|
_runOperation
|
_runOperation (
self,
args,
kw,
)
This is used for non-query operations that don't want "fetch*" to be called
|
|
_runQuery
|
_runQuery (
self,
args,
kw,
)
|
|
close
|
close ( self )
|
|
connect
|
connect ( self )
|
|
interaction
|
interaction (
self,
interaction,
callback,
errback,
*args,
*kw,
)
Interact with the database.
Arguments:
The callable object presented here will be executed in a pooled thread.
callback will be made in the main thread upon success and errback
will be called upon failure. If callback is called, that means that
the transaction was committed; if errback , it was rolled back. This
does not apply in databases which do not support transactions.
|
|
operation
|
operation (
self,
callback,
errback,
*args,
*kw,
)
|
|
query
|
query (
self,
callback,
errback,
*args,
*kw,
)
|
|
runInteraction
|
runInteraction (
self,
interaction,
*args,
*kw,
)
|
|
runOperation
|
runOperation (
self,
*args,
*kw,
)
|
|
synchronousOperation
|
synchronousOperation (
self,
*args,
*kw,
)
|
|