datum-persistence 0.11.3

Event sourcing, durable state, and CQRS persistence for Datum
Documentation
#![forbid(unsafe_code)]
//! Event sourcing, durable state, and CQRS persistence for Datum.
//!
//! The crate provides byte-oriented storage SPIs for event journals, snapshots,
//! and durable state, together with a conformant in-memory reference backend.
//! Serialization is synchronous and selected explicitly through a per-type
//! [`SerializerCatalog`]; the optional default `protobuf` feature supplies
//! `ProstSerializer` without exposing protobuf types in the
//! feature-independent façade.

pub mod backend;
mod behavior;
mod durable;
mod error;
mod id;
mod journal;
pub mod projection;
pub mod query;
mod serialization;
#[cfg(feature = "sharding")]
pub mod sharding;
mod snapshot;
pub mod state;
pub mod testkit;

#[cfg(feature = "cassandra")]
pub use backend::cassandra::{
    CassandraPersistence, CassandraPersistenceConfig, CassandraPollingConfig, CassandraTableNames,
    CassandraWriteMode,
};
pub use backend::{MemoryDurableStateStore, MemoryJournal, MemorySnapshotStore};
#[cfg(feature = "postgres")]
pub use backend::{
    PostgresDeletePolicy, PostgresGroupCommitConfig, PostgresPersistence,
    PostgresPersistenceConfig, PostgresPollingConfig, PostgresTableNames,
};
#[cfg(feature = "rocksdb")]
pub use backend::{RocksDbBackend, RocksDbDurability, RocksDbOptions};
pub use behavior::{
    Effect, EventSourcedBehavior, EventSourcedHandle, EventSourcedMessage, EventSourcedRuntime,
    EventSourcedSignal, EventSourcedState, IntoEventHandlerResult, PublishedEvent, Recovery,
    ReplyEffect, RetentionCriteria, SnapshotSelection,
};
pub use durable::{DurableStateStore, VersionedState};
pub use error::{AppendOutcome, PersistenceError, PersistenceResult};
pub use id::{DEFAULT_PERSISTENCE_ID_SEPARATOR, PersistenceId, Revision, SequenceNr, Tag};
pub use journal::{AtomicWrite, EventStream, Journal, ReplayRange, StoredEvent};
#[cfg(feature = "protobuf")]
pub use serialization::ProstSerializer;
pub use serialization::{
    EventAdapter, IdentityAdapter, PersistenceSerializer, SerializedPayload, SerializerCatalog,
    SerializerId, StateAdapter,
};
pub use snapshot::{SelectedSnapshot, SnapshotCriteria, SnapshotMetadata, SnapshotStore};
pub use testkit::{
    FailingJournal, assert_durable_state_store_conformance, assert_journal_conformance,
    assert_snapshot_store_conformance,
};