Package psycopg2 :: Module pool :: Class AbstractConnectionPool
[show private | hide private]
[frames | no frames]

Type AbstractConnectionPool

object --+
         |
        AbstractConnectionPool

Known Subclasses:
PersistentConnectionPool, SimpleConnectionPool, ThreadedConnectionPool

Generic key-based pooling code.


Method Summary
  __init__(self, minconn, maxconn, *args, **kwargs)
Initialize the connection pool.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Method Details

__init__(self, minconn, maxconn, *args, **kwargs)
(Constructor)

Initialize the connection pool.

New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections.

Overrides:
__builtin__.object.__init__