Safe Haskell | None |
---|---|
Language | Haskell2010 |
"postgresql-simple"-backed query ribbit implementation.
Synopsis
- query :: (MonadIO m, Render query, ToRow (ArgsType query), FromRow (ResultType query)) => Connection -> Proxy query -> ArgsType query -> m [ResultType query]
- class FromRow a
- class ToRow a
Documentation
query :: (MonadIO m, Render query, ToRow (ArgsType query), FromRow (ResultType query)) => Connection -> Proxy query -> ArgsType query -> m [ResultType query] Source #
Execute a query against a PostgreSQL database connection.
Like FromRow
, but defined here so we can avoid orphaned instances.
fromRow