Skip to main content

Crate tensor_checkpoint

Crate tensor_checkpoint 

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

AutoConfirm
No-op confirmation handler that always confirms.
AutoReject
Confirmation handler that always rejects (for testing).
CheckpointConfig
Configuration for the checkpoint manager.
CheckpointInfo
Lightweight checkpoint descriptor returned by list operations.
CheckpointManager
Central coordinator for creating, listing, restoring, and deleting checkpoints.
CheckpointMetadata
Metadata captured at checkpoint time summarizing what the store contained.
CheckpointState
Full checkpoint state including the serialized store snapshot.
CheckpointTrigger
Records which destructive operation triggered an auto-checkpoint.
GraphMeta
Graph engine statistics at checkpoint time.
OperationPreview
Preview of a destructive operation shown to the user before confirmation.
PreviewGenerator
Generates human-readable previews for destructive operations.
RelationalMeta
Relational engine statistics at checkpoint time.
RetentionManager
Enforces a count-based retention policy, deleting the oldest checkpoints beyond the limit.
VectorMeta
Vector engine statistics at checkpoint time.

Enums§

CheckpointError
Errors that can occur during checkpoint operations.
DestructiveOp
Classifies the type of destructive operation for checkpoint and confirmation purposes.

Traits§

CheckpointStore
Abstraction over checkpoint persistence.
ConfirmationHandler
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.