Skip to main content

write_jsonl

Function write_jsonl 

Source
pub fn write_jsonl(
    source: &dyn ExportSource,
    rules: &[RuleDef],
    dest: &Path,
) -> Result<ExportStats, CliError>
Expand description

Write JSONL files to dest: nodes.jsonl, edges.jsonl, rules.jsonl.

Records are written as the source hands them over, in its order (nodes by key, edges by (edge_type, src, dst), rules by name, the caller’s job). Deterministic: same store state, byte-identical output.