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

Class ConnectionWrapper

object --+
         |
        ConnectionWrapper


a connection object returned from a connection pool which wraps a real db connection. It delegates to the real connection, but overrides close(), which instead of closing the connection, returns the it to the pool.
Method Summary
  __init__(self, conn, pool)
  __del__(self)
  __getattr__(self, attr)
  __setattr__(self, attr, val)
  close(self)
    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)
  __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

Class Variable Summary
tuple __slots__ = ('_conn', '_pool', '_closed')
member_descriptor _closed = <member '_closed' of 'ConnectionWrapper' objec...
member_descriptor _conn = <member '_conn' of 'ConnectionWrapper' objects>
member_descriptor _pool = <member '_pool' of 'ConnectionWrapper' objects>

Class Variable Details

__slots__

Type:
tuple
Value:
('_conn', '_pool', '_closed')                                          

_closed

Type:
member_descriptor
Value:
<member '_closed' of 'ConnectionWrapper' objects>                      

_conn

Type:
member_descriptor
Value:
<member '_conn' of 'ConnectionWrapper' objects>                        

_pool

Type:
member_descriptor
Value:
<member '_pool' of 'ConnectionWrapper' objects>                        

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