cqrs-memory-0.10.0: Memory backend for the cqrs package.

Safe HaskellNone
LanguageHaskell2010

Data.CQRS.Memory

Description

Memory-based event store. Used primarily for testing.

Synopsis

Documentation

data Storage e Source

Storage used for memory-backed EventStore and ArchiveStore.

newEventStore :: Show e => Storage e -> IO (EventStore e) Source

Create a memory-backend event store.

newArchiveStore :: Show e => IO UUID -> Storage e -> IO (ArchiveStore e) Source

Create a memory-backed archive store.

newStorage :: IO (Storage e) Source

Create backing memory for a memory-based event store or archive store.

newSnapshotStore :: IO (SnapshotStore a) Source

Create a new memory-backed snapshot store.