cqrs-0.8.0: Command-Query Responsibility Segregation

Data.CQRS.EventStore

Description

Event store functions.

Synopsis

Documentation

enumerateEventStore :: forall e. SafeCopy e => EventStore e -> Int -> Source IO (PersistedEvent e)Source

Enumerate all the events from an event store that occur at or later than a given logical timestamp.

withEventStore :: IO EventStoreBackend -> (EventStore e -> IO a) -> IO aSource

Perform an IO action with an open event store.