Skip to main content

Module checkpoint_fs

Module checkpoint_fs 

Source
Expand description

Store checkpoints on the filesystem. Filesystem checkpoint storage for surreal-sync.

Provides [FilesystemStore] and helpers for reading checkpoint files from a directory. The storage-agnostic API lives in sync-core.

Structs§

CheckpointFile
Storage-agnostic checkpoint file wrapper.
CheckpointFileReader
Manager for reading checkpoint files directly from filesystem.
CheckpointID
Checkpoint identifier for storage
FilesystemStore
Filesystem implementation of CheckpointStore trait.
NullStore
A no-op checkpoint store for when checkpoint storage is disabled.
StoredCheckpoint
Checkpoint data stored in backend
SyncManager
Manager for handling sync operations with checkpoint tracking.

Enums§

SyncPhase
Represents different phases of the synchronization process.

Traits§

Checkpoint
Trait that database-specific checkpoints must implement.
CheckpointStore
Trait for checkpoint storage operations.

Functions§

get_checkpoint_for_phase
Read a checkpoint file for a specific phase from a directory.
get_first_checkpoint_from_dir
Read the first checkpoint file from a directory containing checkpoint files.

Type Aliases§

NullSyncManager
Type alias for SyncManager with disabled checkpointing.