Skip to main content

merge

Function merge 

Source
pub fn merge(
    conn: &Connection,
    stored: &Snapshot,
    incoming: Vec<Ent>,
    expect: Option<&str>,
) -> Result<(Vec<Ent>, bool), String>
Expand description

Resolve the writer’s units against what is stored. Returns the units to persist, or the conflicting row labels.

expect is the version the writer read. None writes unconditionally.