c.t.m.MockDbCursor : class documentation

Part of canonical.testing.mockdb View In Hierarchy

A fake DB-API cursor as produced by MockDbConnection.cursor.

The real work is done by the associated ScriptRecorder or ScriptPlayer using the common interface, making this class independent on what mode the mock database is running in.

Method __init__ Undocumented
Method description As per DB-API, pulled from the script entry.
Method rowcount Return the rowcount only if all the results have been consumed.
Method close As per DB-API.
Method execute As per DB-API.
Method executemany As per DB-API.
Method fetchone As per DB-API.
Method fetchmany As per DB-API.
Method fetchall As per DB-API.
Method nextset As per DB-API.
Method setinputsizes As per DB-API.
Method setoutputsize As per DB-API.
Method _checkClosed Raise an exception if the cursor or connection is closed.
def __init__(self, connection, real_cursor=None):
Undocumented
@property
def description(self):
As per DB-API, pulled from the script entry.
@property
def rowcount(self):
Return the rowcount only if all the results have been consumed.

As per DB-API, pulled from the script entry.

def close(self):
As per DB-API.
def _checkClosed(self):
Raise an exception if the cursor or connection is closed.
def execute(self, query, parameters=None):
As per DB-API.
def executemany(self, query, seq_of_parameters=None):
As per DB-API.
def fetchone(self):
As per DB-API.
def fetchmany(self, size=None):
As per DB-API.
def fetchall(self):
As per DB-API.
def nextset(self):
As per DB-API.
def setinputsizes(self, sizes):
As per DB-API.
def setoutputsize(self, size, column=None):
As per DB-API.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.