class documentation

class CursorWrapper:

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):

Undocumented

def __init__(self, cursor):

Undocumented

def __iter__(self):

Undocumented

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

Undocumented

def executemany(self, query, args):

Undocumented

codes_for_integrityerror: tuple[int, ...] =

Undocumented

cursor =

Undocumented