eventful-sqlite-0.1.0: SQLite implementations for eventful

Safe HaskellNone
LanguageHaskell2010

Eventful.Store.Sqlite

Description

Defines an Sqlite event store.

Synopsis

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.