Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SQLQuery req resp = SQLQuery {
- connectionPool :: forall a. (Connection -> IO a) -> IO a
- queryTemplate :: Query
Documentation
data SQLQuery req resp Source #
A wrapper around a SELECT query that instantiates ReadModel
so that it
can be used by the application layer without said layer to be aware of SQL.
The implementation can then be swapped for something else, e.g. for tests.
SQLQuery | |
|
Instances
(MonadIO m, FromRow resp, ToRow req) => ReadModel m (SQLQuery req resp) Source # | |
Defined in Database.CQRS.PostgreSQL.SQLQuery type ReadModelQuery (SQLQuery req resp) :: Type # type ReadModelResponse (SQLQuery req resp) :: Type # query :: SQLQuery req resp -> ReadModelQuery (SQLQuery req resp) -> m (ReadModelResponse (SQLQuery req resp)) # | |
type ReadModelResponse (SQLQuery req resp) Source # | |
Defined in Database.CQRS.PostgreSQL.SQLQuery | |
type ReadModelQuery (SQLQuery req resp) Source # | |
Defined in Database.CQRS.PostgreSQL.SQLQuery |