Skip to main content

apply_patch

Function apply_patch 

Source
pub fn apply_patch(
    manager: &TxnManager,
    patch: &SyncPatch,
) -> Result<ApplyResult>
Expand description

Apply a sync patch to a database via TxnManager.

Opens a write transaction, applies entries, and commits. For CRDT-aware patches: reads existing values and uses LWW merge. For non-CRDT patches: unconditionally writes all entries.