API reference › @evolu/sqlite-wasm › c-api › sqlite3_total_changes

function sqlite3_total_changes(
  deps: SqliteWasmDep,
): (db: SqliteDbPtr) => number;

Defined in: packages/sqlite-wasm/src/CApi.ts:1475

Returns the rows inserted, updated or deleted by the connection's completed statements since it opened, including those of triggers and foreign key actions. The result is undefined beyond the int range, which sqlite3_total_changes64 avoids.

Wasm type i(i). Signature ["sqlite3_total_changes", "int", "sqlite3*"] from SQLite's table.

See https://sqlite.org/c3ref/total_changes.html.