diff options
author | Gerhard Häring <gh@ghaering.de> | 2008-03-29 19:11:52 (GMT) |
---|---|---|
committer | Gerhard Häring <gh@ghaering.de> | 2008-03-29 19:11:52 (GMT) |
commit | c15317efcd21015a2e076eb0413043c74d84056f (patch) | |
tree | 89150af3c6f7a6c6003a3cfd40bb3e19b091000b | |
parent | 5b63acd31e0e40c1a9a9e9762905b0054ff37994 (diff) | |
download | cpython-c15317efcd21015a2e076eb0413043c74d84056f.zip cpython-c15317efcd21015a2e076eb0413043c74d84056f.tar.gz cpython-c15317efcd21015a2e076eb0413043c74d84056f.tar.bz2 |
Documented the lastrowid attribute.
-rw-r--r-- | Doc/library/sqlite3.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 29d5e49..85925f4 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -532,6 +532,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: |