eventful-sqlite-0.2.0: SQLite implementations for eventful

Safe HaskellNone
LanguageHaskell2010

Eventful.Store.Sqlite

Description

Defines an Sqlite event store.

Synopsis

Documentation

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

An EventStoreWriter 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.