Added documentation for the fetchvars and bindvars attributes on cursors.

This commit is contained in:
Anthony Tuininga 2008-10-28 17:18:43 +00:00
parent 79f1483a28
commit 9fe9f103d4

View File

@ -54,6 +54,18 @@ Cursor Object
The DB API definition does not define this method. The DB API definition does not define this method.
.. attribute:: Cursor.bindvars
This read-only attribute specifies the bind variables used for the last
execute. The value will be either a list or a dictionary depending on
whether binding was done by position or name. Care should be taken when
referencing this attribute. In particular, elements should not be removed.
.. note::
The DB API definition does not define this attribute.
.. method:: Cursor.callfunc(name, returnType, [parameters=[]]) .. method:: Cursor.callfunc(name, returnType, [parameters=[]])
Call a function with the given name. The return type is specified in the Call a function with the given name. The return type is specified in the
@ -207,6 +219,17 @@ Cursor Object
The DB API definition does not define this method. The DB API definition does not define this method.
.. attribute:: Cursor.fetchvars
This read-only attribute specifies the list of variables created for the
last query that was executed on the cursor. Care should be taken when
referencing this attribute. In particular, elements should not be removed.
.. note::
The DB API definition does not define this attribute.
.. method:: Cursor.__iter__() .. method:: Cursor.__iter__()
Returns the cursor itself to be used as an iterator. Returns the cursor itself to be used as an iterator.