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