persistent-eventsource-0.2.0: Persistent based event sourcing.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Persistent.EventSource.Projection

Synopsis

Documentation

class Projection a where Source #

Projection is about setting your event sourced table to data in the event.

Associated Types

type Event a = ev | ev -> a Source #

Methods

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