pub fn export_jsonl<W: Write>(
store_dir: &Path,
out: &mut W,
include_internal: bool,
) -> Result<u64, MemoryError>Expand description
Write every live fact of the store at store_dir to out, one JSON
object per line: {"id", "id_str", "content", "metadata"}. Returns how
many lines were written.
Visibility follows list_memoriesโ policy: internal graph scaffolding is
skipped and reserved keys are stripped (the auto-stamped date survives),
unless include_internal โ a backup wants everything verbatim.
No embedder is built and no provenance check runs: this is the one read path that must work on a store whose configured embedder no longer matches โ your data stays yours even mid-misconfiguration.
ยงErrors
Returns MemoryError when the store cannot be opened or walked, and
I/O errors from out wrapped as MemoryError::InvalidFilter-free
storage errors.