Module cqrs_es::mem_store

source ·
Expand description

An in-memory event store suitable for local testing.

A backing store is necessary for any application to store and retrieve the generated events. This in-memory store is useful for application development and integration tests that do not require persistence after running.

use cqrs_es::CqrsFramework;
use cqrs_es::mem_store::MemStore;

let store = MemStore::<MyAggregate>::default();
let service = MyService::default();
let cqrs = CqrsFramework::new(store, vec![], service);

Structs§

  • Simple memory store useful for application development and testing purposes.
  • Holds context for a pure event store implementation for MemStore.