Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Projection a where
- type Event a = ev | ev -> a
- apply :: (MonadUnliftIO m, MonadLogger m, MonadSqlQuery m) => Event a -> m ()
Documentation
class Projection a where Source #
Projection is about setting your event sourced table to data in the event.
apply :: (MonadUnliftIO m, MonadLogger m, MonadSqlQuery m) => Event a -> m () Source #
Apply event to this context Intended to have write access to the database for updating views