Skip to main content

Module export

Module export 

Source
Expand description

Export writer for mushroomdb export.

Supports two formats:

  • jsonl: nodes.jsonl, edges.jsonl, rules.jsonl (always deterministic)
  • parquet: nodes.parquet, edges.parquet, rules.parquet (byte-identical output is NOT guaranteed across parquet-rs versions; use JSONL when byte-stable reproducibility is required)

Two runs on the same store state produce byte-identical JSONL output (sorted by key / (edge_type, src, dst) / name — callers must pre-sort the slices).

§Float precision loss

Value::Float values that are NaN or ±Inf are not representable in JSON. They are serialised as JSON null rather than causing the export to fail. This is a lossy mapping; the original value is irrecoverable from the export. Stores that need exact float fidelity should use the binary backup command instead of export.

Enums§

ExportFormat
Accepted export formats.

Functions§

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