Expand description
Logical backup and restore for RushDB.
This crate owns the JSONL backup surface only. It is not a migration
tool: migrations from other stores are performed outside the engine (see
the manual’s “Upgrading from RushDB 2.x”). The surface is:
- streaming tenant JSONL export (
export); and - JSONL backup restore (
restore_backup,restore_backup_reader).
Re-exports§
pub use export::export_tenant_jsonl_to;
Modules§
- export
- Pinned logical graph export. This is not a canonical storage checkpoint: policy/index metadata, outcomes, history, and journal state are not included.
Functions§
- export_
tenant_ jsonl - Export one tenant’s records and relationships as a JSONL document, returning
the text plus
(records, relationships)counts. - restore_
backup - Restore a JSONL backup into a live engine. Records upsert by
__id(preserving public identity), relationships are linked by endpoint ids, relationship properties are written onto the new edges. Returns the number of records and relationships materialized. - restore_
backup_ reader - Restore a JSONL backup incrementally from a buffered reader. The reader is
consumed line-by-line, so callers can restore large logical exports without
first materializing the complete artifact as one
String.