cqrs-postgresql-0.10.0: PostgreSQL backend for the cqrs package.

Safe HaskellNone
LanguageHaskell2010

Data.CQRS.PostgreSQL

Synopsis

Documentation

newArchiveStore :: IO UUID -> Pool Connection -> IO (ArchiveStore ByteString) Source

Create an archive store backed by a PostgreSQL connection pool.

newEventStore :: Pool Connection -> IO (EventStore ByteString) Source

Create an event store backed by a PostgreSQL connection pool. The database which the connections go to must have an appropriate schema as defined by applyMigrations.

newSnapshotStore :: Pool Connection -> IO (SnapshotStore ByteString) Source

Create an snapshot store backed by a PostgreSQL connection pool.