Class CursorWrapper
A thin wrapper around MySQLdb's normal cursor class that catches particular exception instances and reraises them with the correct types.
Declaration
class CursorWrapper
source linkDocumentation
Implemented as a wrapper, rather than a subclass, so that it isn't stuck
to the particular underlying representation returned by Connection.cursor().
Methods
▷ def execute(self, query, args=None)