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

Safe HaskellNone

Data.CQRS.EventStore.Backend.PostgreSQLUtils

Description

Implementation of a PostgreSQL-based event store.

Synopsis

Documentation

run :: Connection -> ByteString -> [SqlValue] -> IO ()Source

Execute a query with no result.

sourceQuery :: Connection -> ByteString -> [SqlValue] -> Source (ResourceT IO) [SqlValue]Source

Source for traversing all the results of a PostgreSQL query.

withTransaction :: Connection -> IO a -> IO aSource

Execute an IO action with an active transaction.