pub fn begin_row_patch(
conn: &Connection,
expect: Option<&str>,
) -> Result<(Option<String>, Value), String>Expand description
The base version and the current document a row patch is applied to.
Both come from one snapshot, and when the caller names no version the one read here is
the base. PATCH /api/vault without an If-Match used to load the document and then
save it with no expected version at all, which storage::merge treats as “the writer’s
document is the whole truth”: any row another writer committed between the load and the
save was silently reverted, or deleted if it was new. With the version read first, that
writer’s rows are merged (or reported as a conflict) like any stale save.