| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Ribbit.PostgreSQL
Description
"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.
Minimal complete definition
fromRow
Like ToRow, but defined here to avoid orphan instances.
Minimal complete definition
toRow