-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | SQLite implementations for eventful -- -- SQLite implementations for eventful @package eventful-sqlite @version 0.2.0 -- | Defines an Sqlite event store. module Eventful.Store.Sqlite -- | An EventStoreWriter that uses an SQLite database as a backend. -- Use SqlEventStoreConfig to configure this event store. sqliteEventStoreWriter :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> EventStoreWriter (SqlPersistT m) serialized -- | This functions runs the migrations required to create the events table -- and also adds an index on the UUID column. initializeSqliteEventStore :: (MonadIO m, PersistEntity entity, PersistEntityBackend entity ~ SqlBackend) => SqlEventStoreConfig entity serialized -> ConnectionPool -> m ()