Package entropy :: Package db :: Module sql :: Class SQLConnectionWrapper

Class SQLConnectionWrapper

source code


This class wraps an implementation dependent Connection object, exposing a common API which resembles the Python DBAPI 2.0. All the underlying library calls are wrapped around using a proxy method in order to catch and then raise entropy.db.exceptions exceptions.

Instance Methods
 
__init__(self, connection, exceptions)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__hash__(self)
hash(x)
source code
 
commit(self) source code
 
rollback(self) source code
 
close(self) source code
 
cursor(self) source code
 
ping(self)
Ping the underlying connection to keep it alive.
source code
 
unicode(self)
Enforce Unicode strings.
source code
 
rawstring(self)
Enforce byte strings.
source code
 
interrupt(self)
Interrupt any pending activity.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
connect(module_proxy, module, subclass, *args, **kwargs) source code
Properties

Inherited from object: __class__

Method Details

__init__(self, connection, exceptions)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)