Skip to main content

Crate ucm_events

Crate ucm_events 

Source
Expand description

Event store — append-only source of truth for all context mutations.

The event log is authoritative — the graph is always rebuildable from events. This is the Datomic-inspired “database as a value” model: every fact is appended, never updated. Queries run against immutable snapshots.

Design: In-memory store with the same API surface as a RocksDB-backed store. For production, swap to RocksDB with column families per stream.

References:

  • Datomic: https://docs.datomic.com/
  • Event Sourcing: https://martinfowler.com/eaaDev/EventSourcing.html

Re-exports§

pub use projection::*;
pub use store::*;

Modules§

projection
Event-to-graph projection — replay events to build/update the context graph.
store
In-memory event store with the same API as a production RocksDB-backed store.