Expand description
TensorCheckpoint - Rollback/Checkpoint System for Neumann
Provides checkpoint and rollback capabilities for the Neumann database:
- Auto-checkpoints before destructive operations
- Manual CHECKPOINT command for user-initiated snapshots
- Interactive confirmation with preview of affected data
- Count-based retention with automatic purge
Checkpoints are stored on disk via FileCheckpointStore.
Re-exports§
pub use file_store::FileCheckpointStore;
Modules§
- file_
store - File-based checkpoint storage backend.
Structs§
- Auto
Confirm - No-op confirmation handler that always confirms.
- Auto
Reject - Confirmation handler that always rejects (for testing).
- Checkpoint
Config - Configuration for the checkpoint manager.
- Checkpoint
Info - Lightweight checkpoint descriptor returned by list operations.
- Checkpoint
Manager - Central coordinator for creating, listing, restoring, and deleting checkpoints.
- Checkpoint
Metadata - Metadata captured at checkpoint time summarizing what the store contained.
- Checkpoint
State - Full checkpoint state including the serialized store snapshot.
- Checkpoint
Trigger - Records which destructive operation triggered an auto-checkpoint.
- Graph
Meta - Graph engine statistics at checkpoint time.
- Operation
Preview - Preview of a destructive operation shown to the user before confirmation.
- Preview
Generator - Generates human-readable previews for destructive operations.
- Relational
Meta - Relational engine statistics at checkpoint time.
- Retention
Manager - Enforces a count-based retention policy, deleting the oldest checkpoints beyond the limit.
- Vector
Meta - Vector engine statistics at checkpoint time.
Enums§
- Checkpoint
Error - Errors that can occur during checkpoint operations.
- Destructive
Op - Classifies the type of destructive operation for checkpoint and confirmation purposes.
Traits§
- Checkpoint
Store - Abstraction over checkpoint persistence.
- Confirmation
Handler - Trait for handling confirmation prompts before destructive operations.
Functions§
- format_
confirmation_ prompt - Build a full confirmation prompt including warning, summary, sample data, and input prompt.
- format_
warning - Format a warning message for a destructive operation.
Type Aliases§
- Result
- Convenience alias for checkpoint operations.