apply_changeset_with_context

Function apply_changeset_with_context 

Source
pub unsafe fn apply_changeset_with_context<F>(
    db: *mut sqlite3,
    changeset: &Changeset,
    conflict_handler: F,
) -> Result<(), i32>
Expand description

Apply a changeset to a database connection with full conflict context.

The handler receives the conflict type AND a ConflictContext that provides access to the table name, column count, and column values (new, old, conflict).

ยงSafety

db must be a valid, open sqlite3 connection pointer.