Home | Trees | Index | Help |
---|
|
object
--+
|
AbstractConnectionPool
PersistentConnectionPool
,
SimpleConnectionPool
,
ThreadedConnectionPool
Generic key-based pooling code.
Method Summary | |
---|---|
Initialize the connection pool. | |
Close all connections. | |
Create a new connection and assign it to 'key' if not None. | |
Get a free connection and assign it to 'key' if not None. | |
Return a new unique key. | |
Put away a connection. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Method Details |
---|
__init__(self,
minconn,
maxconn,
*args,
**kwargs)
|
_closeall(self)Close all connections. Note that this can lead to some code fail badly when trying to use an already closed connection. If you call .closeall() make sure your code can deal with it. |
_connect(self, key=None)Create a new connection and assign it to 'key' if not None. |
_getconn(self, key=None)Get a free connection and assign it to 'key' if not None. |
_getkey(self)Return a new unique key. |
_putconn(self, conn, key=None, close=False)Put away a connection. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Jan 14 01:42:34 2006 | http://epydoc.sf.net |