Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Repository a e = Repository {}
- data Settings = Settings {}
- setSnapshotFrequency :: Int -> Settings -> Settings
- defaultSettings :: Settings
- newRepository :: (Show e, NFData e) => Settings -> AggregateAction a e -> EventStore e -> SnapshotStore a -> ((UUID, [PersistedEvent e]) -> IO r) -> IO UUID -> Repository a e
Documentation
data Repository a e Source
Repository consisting of an event store and an event bus.
Repository | |
|
setSnapshotFrequency :: Int -> Settings -> Settings Source
Set the snapshot frequency. 0 or negative means that no snapshots will be written. Any existing snapshots will still be used.
defaultSettings :: Settings Source
Default repository settings:
- There are no snapshot by default
newRepository :: (Show e, NFData e) => Settings -> AggregateAction a e -> EventStore e -> SnapshotStore a -> ((UUID, [PersistedEvent e]) -> IO r) -> IO UUID -> Repository a e Source
Create a repository from a pool of event store backends.