l.t.p.CursorWrapper : class documentation

Part of lp.testing.pgsql View In Hierarchy

A wrapper around cursor objects.

Acts like a normal cursor object, except if CursorWrapper.record_sql is set, then queries that pass through CursorWrapper.execute will be appended to CursorWrapper.last_executed_sql. This is useful for tests that want to ensure that certain SQL is generated.

Method __init__ Undocumented
Method execute Undocumented
Method __getattr__ Undocumented
Method __setattr__ Undocumented
def __init__(self, real_cursor):
Undocumented
def execute(self, *args, **kwargs):
Undocumented
def __getattr__(self, key):
Undocumented
def __setattr__(self, key, val):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.