[Python-3000-checkins] r62045 - python/branches/py3k/Doc/library/sqlite3.rst

gerhard.haering python-3000-checkins at python.org
Sat Mar 29 20:13:55 CET 2008


Author: gerhard.haering
Date: Sat Mar 29 20:13:55 2008
New Revision: 62045

Modified:
   python/branches/py3k/Doc/library/sqlite3.rst
Log:
Documented lastrowid attribute in py3k branch.


Modified: python/branches/py3k/Doc/library/sqlite3.rst
==============================================================================
--- python/branches/py3k/Doc/library/sqlite3.rst	(original)
+++ python/branches/py3k/Doc/library/sqlite3.rst	Sat Mar 29 20:13:55 2008
@@ -531,6 +531,12 @@
    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:
 


More information about the Python-3000-checkins mailing list