Skip to main content

Module restore

Module restore 

Source
Expand description

Point-in-time restore for a VectorStore.

Provides a high-level function that applies WAL replay results to a VectorStore, effectively rolling the store back (or forward) to any historical timestamp recorded in the WAL.

The implementation purposely avoids rebuilding the index from scratch: only the delta entries between the nearest checkpoint and the target timestamp are replayed into the existing (or freshly created) store.

Structs§

RestoreReport
Summary produced by restore_to_timestamp.

Functions§

apply_wal_entry
Apply a single WalEntry to a VectorStore.
restore_to_timestamp
Restore a VectorStore to its state at target_timestamp_secs (Unix epoch, seconds).