Data.CQRS.EventStore.Backend
Description
Event store backend. You only need to import this module if you're planning on implementing a custom event store backend.
- data EventStoreBackend = EventStoreBackend {
- esbStoreEvents :: GUID -> Int -> [(ByteString, Int)] -> IO ()
- esbRetrieveEvents :: GUID -> Int -> IO (Int, [ByteString])
- esbEnumerateAllEvents :: forall a. Int -> Enumerator (Int, (GUID, Int, ByteString)) IO a
- esbWriteSnapshot :: GUID -> (Int, ByteString) -> IO ()
- esbGetLatestSnapshot :: GUID -> IO (Maybe (Int, ByteString))
- esbGetLatestVersion :: IO Int
- esbWithTransaction :: forall a. IO a -> IO a
- esbCloseEventStoreBackend :: IO ()
Documentation
data EventStoreBackend Source
Event stores are the backend used for reading and storing all the information about recorded events.
Constructors
EventStoreBackend | |
Fields
|