apply_changeset_lww

Function apply_changeset_lww 

Source
pub unsafe fn apply_changeset_lww(
    db: *mut sqlite3,
    changeset: &Changeset,
) -> Result<ApplyResult, SyncError>
Expand description

Apply a changeset to the given database connection using LWW conflict resolution.

Builds schema info from the database to look up _updated_at column indices dynamically, so future migrations that add columns are safe.

ยงSafety

db must be a valid, open sqlite3 connection pointer.