eventful-postgresql-0.1.1: Postgres implementations for eventful

Safe HaskellNone
LanguageHaskell2010

Eventful.Store.Postgresql

Description

Defines an Postgresql event store.

Synopsis

Documentation

postgresqlEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> EventStore serialized (SqlPersistT m) Source #

An EventStore that uses a PostgreSQL database as a backend. Use SqlEventStoreConfig to configure this event store.

initializePostgresqlEventStore :: MonadIO m => ConnectionPool -> m () Source #

This function runs migrations to create the events table if it isn't present.