Package pydo :: Module dbi :: Class ConnectionPool
[show private | hide private]
[frames | no frames]

Class ConnectionPool

object --+
         |
        ConnectionPool


a connection pool for a single connection alias.
Method Summary
  __init__(self, max_poolsize, keep_poolsize, delay, retries)
  connect(self, connectFunc, connectArgs, initFunc)
  onHandOut(self, realConn)
any test you want to perform on a cached (i.e., not newly connected) connection before giving it out.
  onRelease(self, realConn)
anything you want to do to a connection when it is returned (default: rollback)
  release(self, conn)
  _connect(self, connectFunc, connectArgs, initFunc, retries)
internal method; don't call it
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
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

Generated by Epydoc 2.0 on Wed Mar 8 10:18:59 2006 http://epydoc.sf.net