Skip to main content

atomr_persistence_mongodb/
lib.rs

1//! atomr-persistence-mongodb.
2//!
3//! Stores events in a MongoDB collection keyed by `(persistence_id,
4//! sequence_nr)` with a unique compound index. Snapshots live in a
5//! sibling collection with the same compound key.
6
7mod config;
8mod documents;
9mod journal;
10mod snapshot;
11
12pub use config::MongoConfig;
13pub use documents::{EventDoc, SnapshotDoc};
14pub use journal::MongoJournal;
15pub use snapshot::MongoSnapshotStore;