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 :: forall a. GUID a -> Int -> [(ByteString, Int)] -> IO ()
- esbRetrieveEvents :: forall a. GUID a -> Int -> IO (Int, [ByteString])
- esbEnumerateAllEvents :: forall a b. Int -> Enumerator (Int, (GUID a, Int, ByteString)) IO b
- esbWriteSnapshot :: forall a. GUID a -> (Int, ByteString) -> IO ()
- esbGetLatestSnapshot :: forall a. GUID a -> 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
| |