Table of Contents

Class: ICursor ./src/peak/storage/interfaces.py

Iterable database cursor

Base Classes   
Interface
Methods   
__invert__
__iter__
allSets
close
dumpTo
execute
justOne
nextset
  __invert__ 
__invert__ ()

The same as justOne(); i.e. ~cursor == cursor.justOne()

  __iter__ 
__iter__ ()

Return an iterator returning the IRows of the result

  allSets 
allSets ()

Return an iterator returning a list of IRows for each result set

  close 
close ()

Close/reset the true DB cursor; the proxy can still be reused

  dumpTo 
dumpTo (
        stream,
        format=None,
        header=True,
        footer=True,
        delim='|',
        **kw,
        )

render cursor to stream

  execute 
execute ( *args )

Execute a command

Note that the types and semantics of this method's arguments are database-specific. DBAPI cursors expect an SQL command and an optional params object, while LDAP cursors expect the arguments for an LDAP search operation.

Following execute(), a cursor should be ready for iteration over its result rows.

  justOne 
justOne ()

Assert that result contains only one IRow, and return it

  nextset 
nextset ()

Result of calling the true DB cursor's nextset(), or None


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:04 2024 by HappyDoc version 2.1