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

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

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

Returns the rows changed by the connection's most recently completed INSERT, UPDATE or DELETE, without changes by triggers, foreign key actions or REPLACE; other statements leave it unchanged, except a DROP TABLE that, with foreign keys on, first deletes the rows of a table that foreign keys reference. The result is undefined above the int range, which sqlite3_changes64 covers.

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

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