Event store functions.
- data EventStore e
- enumerateEventStore :: forall e. SafeCopy e => EventStore e -> Int -> Source IO (PersistedEvent e)
- withEventStore :: IO EventStoreBackend -> (EventStore e -> IO a) -> IO a
Documentation
data EventStore e Source
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.