Interface RowChange

A write to a table, reported once it has committed.

interface RowChange {
    table: string;
    operation: RowChangeOperation;
    changes?: number;
    lastInsertRowid?: null | string | number;
    statement: string;
}

Properties

table: string

The table, as the statement names it, unquoted: notes, or app.notes when the statement qualifies it.

changes?: number

The rows the engine counted, from run() and batch(), which report only a statement that changed a row. get(), all() and exec() report the statement without a count.

lastInsertRowid?: null | string | number

run()'s lastInsertRowid, for an insert.

statement: string

The statement that made the change.