persistent-event-source-0.1.0: Persistent based event sourcing.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Persistent.Event.Source.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