Methods
|
|
|
|
__init__
|
__init__ ( self )
|
|
_execute
|
_execute (
self,
cursor,
operation,
parameters,
)
Exceptions
|
|
AssertionError( "Unexpected query", operation, parameters )
AssertionError("Expected: %s; Got: %s" %(( operation, parameters ), ( expected_op, expected_params ) ) )
|
|
|
_verifyFinished
|
_verifyFinished ( self )
Exceptions
|
|
AssertionError( "Un-executed queries", self._expected )
|
|
|
alsoExpect
|
alsoExpect (
self,
operation,
parameters=None,
)
Expect additional operation(s)
|
|
close
|
close ( self )
|
|
commit
|
commit ( self )
|
|
cursor
|
cursor ( self )
|
|
expect
|
expect (
self,
operation,
parameters=None,
)
Expect a cursor to execute operation with parameters
|
|
provide
|
provide (
self,
data,
description=(),
)
Provide data and description in reply to next operation
Exceptions
|
|
ProgrammingError( "More results provided than queries expected" )
|
|
|
rollback
|
rollback ( self )
|
|
when
|
when (
self,
operation,
parameters=NOT_GIVEN,
data=None,
description=(),
callback=NOT_GIVEN,
)
|
|