1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Efficient snapshots for LoraDB graph state.
//!
//! This crate is intentionally separate from `lora-store` and `lora-wal`:
//! the store owns the canonical in-memory records, the WAL owns ordered
//! mutation recovery, and this crate owns compact point-in-time state images.
//!
//! The current format is column-oriented rather than serde-over-struct:
//! nodes, labels, relationships, relationship types, and properties are stored
//! in separate columns. That keeps the format friendly to future Arrow /
//! Parquet backends while avoiding those heavy dependencies in the first
//! implementation. Compression and authenticated encryption are applied to the
//! encoded column body.
//!
//! Layout:
//! - `format` — magic + format/version constants.
//! - `codec` — top-level `encode_snapshot` / `decode_snapshot` /
//! `write_snapshot` / `read_snapshot` and `SnapshotInfo`.
//! - `envelope`, `body`, `columnar`, `transform`, `view` — the layered
//! on-disk format implementation.
//! - `errors`, `options` — public vocabulary.
pub use ;
pub use ;
pub use DATABASE_SNAPSHOT_MAGIC;
pub use ;
pub use ;