Skip to main content

Crate rushdb_backup

Crate rushdb_backup 

Source
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:

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.