Skip to main content

surreal_sync_runtime/checkpoint_fs/
mod.rs

1//! Filesystem checkpoint storage for surreal-sync.
2//!
3//! Provides [`FilesystemStore`] and helpers for reading checkpoint files
4//! from a directory. The storage-agnostic API lives in `sync-core`.
5
6mod filesystem;
7mod helpers;
8mod reader;
9
10pub use filesystem::FilesystemStore;
11pub use helpers::{get_checkpoint_for_phase, get_first_checkpoint_from_dir};
12pub use reader::CheckpointFileReader;
13
14// Re-export API types commonly used with the filesystem backend.
15pub use surreal_sync_core::{
16    Checkpoint, CheckpointFile, CheckpointID, CheckpointStore, NullStore, NullSyncManager,
17    StoredCheckpoint, SyncManager, SyncPhase,
18};
19
20#[cfg(test)]
21mod tests;