summaryrefslogtreecommitdiffstats
path: root/Doc/library/sqlite3.rst
diff options
context:
space:
mode:
authorGerhard Häring <gh@ghaering.de>2008-03-29 19:13:55 (GMT)
committerGerhard Häring <gh@ghaering.de>2008-03-29 19:13:55 (GMT)
commitd3372793d6de665be2f866e9245a33bcefeaaa76 (patch)
treed1dec1b9b43440fbf51bafed4a66946f653857ea /Doc/library/sqlite3.rst
parente871ad59cf7cfa0cba173bf31e22a850f5ea9e18 (diff)
downloadcpython-d3372793d6de665be2f866e9245a33bcefeaaa76.zip
cpython-d3372793d6de665be2f866e9245a33bcefeaaa76.tar.gz
cpython-d3372793d6de665be2f866e9245a33bcefeaaa76.tar.bz2
Documented lastrowid attribute in py3k branch.
Diffstat (limited to 'Doc/library/sqlite3.rst')
-rw-r--r--Doc/library/sqlite3.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 3698b01..616be10 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -531,6 +531,12 @@ A :class:`Cursor` instance has the following attributes and methods:
This includes ``SELECT`` statements because we cannot determine the number of
rows a query produced until all rows were fetched.
+.. attribute:: Cursor.lastrowid
+
+ This read-only attribute provides the rowid of the last modified row. It is
+ only set if you issued a ``INSERT`` statement using the :meth:`execute`
+ method. For operations other than ``INSERT`` or when :meth:`executemany` is
+ called, :attr:`lastrowid` is set to :const:`None`.
.. _sqlite3-types: