Skip to main content

ucm_events/
lib.rs

1//! Event store — append-only source of truth for all context mutations.
2//!
3//! The event log is authoritative — the graph is always rebuildable from events.
4//! This is the Datomic-inspired "database as a value" model: every fact is
5//! appended, never updated. Queries run against immutable snapshots.
6//!
7//! Design: In-memory store with the same API surface as a RocksDB-backed store.
8//! For production, swap to RocksDB with column families per stream.
9//!
10//! References:
11//! - Datomic: https://docs.datomic.com/
12//! - Event Sourcing: https://martinfowler.com/eaaDev/EventSourcing.html
13
14pub mod projection;
15pub mod store;
16
17pub use projection::*;
18pub use store::*;