class documentation

class CursorWrapper: (source)

View In Hierarchy

A thin wrapper around MySQLdb's normal cursor class that catches particular exception instances and reraises them with the correct types. Implemented as a wrapper, rather than a subclass, so that it isn't stuck to the particular underlying representation returned by Connection.cursor().

Method __getattr__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method execute Undocumented
Method executemany Undocumented
Class Variable codes_for_integrityerror Undocumented
Instance Variable cursor Undocumented
def __getattr__(self, attr): (source)

Undocumented

def __init__(self, cursor): (source)

Undocumented

def __iter__(self): (source)

Undocumented

def execute(self, query, args=None): (source)

Undocumented

def executemany(self, query, args): (source)

Undocumented

codes_for_integrityerror: tuple[int, ...] = (source)

Undocumented

Undocumented