1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![forbid(unsafe_code)]
#![deny(missing_docs)]
#![deny(clippy::all)]
// #![warn(clippy::pedantic)]
//! # postgres-es
//!
//! > Common persistence logic used for database-backed event stores for cqrs-es.
//!
//! [![Crates.io](https://img.shields.io/crates/v/persist-es)](https://crates.io/crates/persist-es)
//! [![docs](https://img.shields.io/badge/API-docs-blue.svg)](https://docs.rs/persist-es)
//!
mod context;
mod error;
mod event_store;
mod queries;
mod repository;
mod snapshot_store;

pub use context::{EventStoreAggregateContext, QueryContext, SnapshotStoreAggregateContext};
pub use error::PersistenceError;
pub use event_store::PersistedEventStore;
pub use queries::GenericQuery;
pub use repository::{PersistedEventRepository, PersistedSnapshotEventRepository, ViewRepository};
pub use snapshot_store::PersistedSnapshotStore;