Skip to main content

to_ndjson

Function to_ndjson 

Source
pub fn to_ndjson(changeset: &ChangeSet) -> Result<String, ChangeSetError>
Expand description

Encode a ChangeSet as NDJSON-delta: the envelope as line 1, then one line per op in stage order. No filesystem access — returns an in-memory String; the caller decides what to do with it.