Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines an Sqlite event store.
- sqliteEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> EventStore serialized (SqlPersistT m)
- initializeSqliteEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> ConnectionPool -> m ()
- module Eventful.Store.Class
- module Eventful.Store.Sql
Documentation
sqliteEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> EventStore serialized (SqlPersistT m) Source #
An EventStore
that uses an SQLite database as a backend. Use
SqlEventStoreConfig
to configure this event store.
initializeSqliteEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> ConnectionPool -> m () Source #
This functions runs the migrations required to create the events table and also adds an index on the UUID column.
module Eventful.Store.Class
module Eventful.Store.Sql