Documented lastrowid attribute in py3k branch.

This commit is contained in:
Gerhard Häring 2008-03-29 19:13:55 +00:00
parent e871ad59cf
commit d3372793d6
1 changed files with 6 additions and 0 deletions

View File

@ -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: