Index: sqlite3.rst =================================================================== --- sqlite3.rst (revision 61155) +++ sqlite3.rst (working copy) @@ -481,7 +481,19 @@ This includes ``SELECT`` statements because we cannot determine the number of rows a query produced until all rows were fetched. +.. attribute:: Cursor.lastrowid + Although the :class:`Cursor` class of the :mod:`sqlite3` module implements this + attribute, the Python Database API Specification v2.0 marked this attribute as + extension. + + This read-only attribute provides the rowid of the last modified row. If the + operation does not set a rowid this attribute would be set to None. + + The semantics of .lastrowid in case the last executed statement + modified more than one row, e.g. when using INSERT with .executemany() is + defined to id of last modified row. + . .. _sqlite3-types: SQLite and Python types