Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines an Postgresql event store.
- postgresqlEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> EventStore serialized (SqlPersistT m)
- initializePostgresqlEventStore :: MonadIO m => ConnectionPool -> m ()
- module Eventful.Store.Class
- module Eventful.Store.Sql
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.
module Eventful.Store.Class
module Eventful.Store.Sql