Home | Trees | Index | Help |
|
---|
Package pydo :: Module dbi :: Class ConnectionPool |
|
object
--+
|
ConnectionPool
Method Summary | |
---|---|
__init__(self,
max_poolsize,
keep_poolsize,
delay,
retries)
| |
connect(self,
connectFunc,
connectArgs,
initFunc)
| |
any test you want to perform on a cached (i.e., not newly connected) connection before giving it out. | |
anything you want to do to a connection when it is returned (default: rollback) | |
release(self,
conn)
| |
internal method; don't call it | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method Details |
---|
onHandOut(self, realConn)any test you want to perform on a cached (i.e., not newly connected) connection before giving it out. If the connection isn't good, return False |
onRelease(self, realConn)anything you want to do to a connection when it is returned (default: rollback) |
_connect(self, connectFunc, connectArgs, initFunc, retries)internal method; don't call it |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Wed Mar 8 10:18:59 2006 | http://epydoc.sf.net |