Portability | portable |
---|---|
Stability | experimental |
Maintainer | Leon P Smith <[email protected]> |
Database.PostgreSQL.Simple.QueryParams
Description
The QueryParams
typeclass, for rendering a collection of
parameters to a SQL query.
Predefined instances are provided for tuples containing up to ten elements.
- class QueryParams a where
- renderParams :: a -> [Action]
Documentation
class QueryParams a whereSource
A collection type that can be turned into a list of rendering
Action
s.
Instances should use the render
method of the Param
class
to perform conversion of each element of the collection.
Instances
QueryParams () | |
Param a => QueryParams [a] | |
Param a => QueryParams (Only a) | |
(Param a, Param b) => QueryParams (a, b) | |
(Param a, Param b, Param c) => QueryParams (a, b, c) | |
(Param a, Param b, Param c, Param d) => QueryParams (a, b, c, d) | |
(Param a, Param b, Param c, Param d, Param e) => QueryParams (a, b, c, d, e) | |
(Param a, Param b, Param c, Param d, Param e, Param f) => QueryParams (a, b, c, d, e, f) | |
(Param a, Param b, Param c, Param d, Param e, Param f, Param g) => QueryParams (a, b, c, d, e, f, g) | |
(Param a, Param b, Param c, Param d, Param e, Param f, Param g, Param h) => QueryParams (a, b, c, d, e, f, g, h) | |
(Param a, Param b, Param c, Param d, Param e, Param f, Param g, Param h, Param i) => QueryParams (a, b, c, d, e, f, g, h, i) | |
(Param a, Param b, Param c, Param d, Param e, Param f, Param g, Param h, Param i, Param j) => QueryParams (a, b, c, d, e, f, g, h, i, j) |