API reference › @evolu/sqlite-wasm › c-api › sqlite3_last_insert_rowid
function sqlite3_last_insert_rowid(
deps: SqliteWasmDep,
): (db: SqliteDbPtr) => bigint;
Defined in: packages/sqlite-wasm/src/CApi.ts:1411
Returns the rowid of the connection's most recent successful INSERT into a rowid table, or 0 if there was none. Inside a trigger it returns the trigger's insert until the trigger ends, and a failed INSERT leaves it unchanged.
Wasm type j(i). Signature ["sqlite3_last_insert_rowid", "i64", "sqlite3*"] from SQLite's table.