Function sqlite3_update_hook

Source
pub unsafe fn sqlite3_update_hook(
    db: *mut sqlite3,
    xUpdate: Option<unsafe extern "C" fn(userCtx: *mut c_void, op: c_int, dbName: *const c_char, tableName: *const c_char, newRowId: sqlite3_int64)>,
    userCtx: *mut c_void,
) -> *mut c_void
Expand description

Registers a callback function with the database connection identified by the first argument to be invoked whenever a row is updated, inserted or deleted in a rowid table. Any callback set by a previous call to this function for the same database connection is overridden.

See https://www.sqlite.org/c3ref/update_hook.html