interface
sqlite.Changes
interface Changes
An object representing the changes made to the database since the last run or exec call.
- changes: number
The number of rows that the last
runorexeccall inserted, updated, or deleted itself.Rows that a trigger or a foreign key action such as
ON DELETE CASCADEchanges do not count. Database.run with several statements in one string reports their sum. - lastInsertRowid: number | bigint
The
rowidof the most recently inserted row.If
safeIntegersistrue, this is abigint. Otherwise, it is anumber.