Function sqlite3_rollback_hook

Source
pub unsafe fn sqlite3_rollback_hook(
    db: *mut sqlite3,
    hook: Option<unsafe extern "C" fn(cbArg: *mut c_void)>,
    cbArg: *mut c_void,
) -> *mut c_void
Expand description

The sqlite3_rollback_hook() interface registers a callback function to be invoked whenever a transaction is rolled back. Any callback set by a previous call to sqlite3_rollback_hook() for the same database connection is overridden.

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