A base for Cursor classes. Useful attributes:
|
|
__init__(self,
conn)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
|
|
|
|
|
|
close(self)
Close the cursor. |
|
|
|
|
| _bind_params(self,
args,
set_type=None) |
|
|
|
|
execute(self,
query,
args=None,
set_type=None)
Execute a query. |
|
|
|
|
executemany(self,
query,
args)
Execute a multi-row query. |
|
|
|
|
|
|
|
fetchone(self)
Fetch the next row of a query result set, returning a single
sequence, or None when no more data is available. |
|
|
|
|
|
|
|
fetchmany(self,
size=None)
Fetch the next set of rows of a query result, returning a sequence of
sequences (e.g. |
|
|
|
|
fetchall(self)
Fetch all (remaining) rows of a query result, returning them as a
sequence of sequences (e.g. |
|
|
|
|
setinputsizes(self,
*args)
Does nothing, required by DB API. |
|
|
|
|
setoutputsizes(self,
*args)
Does nothing, required by DB API. |
|
|
|
|
nextset(self)
Advance to the next result set. |
|
|
|
|
callproc(self,
procname,
args=())
Execute stored procedure procname with args |
|
|
|
|
__iter__(self)
Iteration over the result set which calls self.fetchone() and returns
the next row. |
|
|
|
|
next(self)
Return the next row from the currently executing SQL statement using
the same semantics as fetchone(). |
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|