Package entropy :: Package db :: Module sql :: Class SQLCursorWrapper

Class SQLCursorWrapper

source code


This class wraps an implementation dependent Cursor 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, cursor, exceptions)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
wrap(self, method, *args, **kwargs) source code
 
execute(self, *args, **kwargs) source code
 
executemany(self, *args, **kwargs) source code
 
close(self, *args, **kwargs) source code
 
fetchone(self, *args, **kwargs) source code
 
fetchall(self, *args, **kwargs) source code
 
fetchmany(self, *args, **kwargs) source code
 
executescript(self, *args, **kwargs) source code
 
callproc(self, *args, **kwargs) source code
 
nextset(self, *args, **kwargs) source code
 
__iter__(self) source code
 
__next__(self) source code
 
next(self) source code

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

Properties
  lastrowid
  rowcount
  description

Inherited from object: __class__

Method Details

__init__(self, cursor, exceptions)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Property Details

lastrowid

Get Method:
unreachable.lastrowid(self)

rowcount

Get Method:
unreachable.rowcount(self)

description

Get Method:
unreachable.description(self)