Function sqlite3_last_insert_rowid

Source
pub unsafe fn sqlite3_last_insert_rowid(db: *mut sqlite3) -> sqlite3_int64
Expand description

Usually returns the rowid of the most recent successful INSERT into a rowid table or virtual table on database connection db. Inserts into WITHOUT ROWID tables are not recorded. If no successful INSERTs into rowid tables have ever occurred on the database connection db, then sqlite3_last_insert_rowid(db) returns zero

See https://www.sqlite.org/c3ref/last_insert_rowid.html