Skip to main content

Module persistence

Module persistence 

Source
Expand description

Snapshot save/load helpers for the DSQL control-plane state.

Enums§

LoadError
LoadOutcome

Functions§

load_into
Load a snapshot into state. Empty when nothing is saved, Loaded(n) after a successful restore, or a descriptive error for a fatal startup log.
save_snapshot
Serialize and persist the current DSQL state. No-op when there is no store (memory mode). Serialized off the async runtime to avoid blocking.