From 9fe9f103d4bd6de799523ca819d1ce816443dc84 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Tue, 28 Oct 2008 17:18:43 +0000 Subject: [PATCH] Added documentation for the fetchvars and bindvars attributes on cursors. --- doc/cursor.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/cursor.rst b/doc/cursor.rst index e7adf07..55b4ddb 100644 --- a/doc/cursor.rst +++ b/doc/cursor.rst @@ -54,6 +54,18 @@ Cursor Object 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=[]]) 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. +.. 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__() Returns the cursor itself to be used as an iterator.