pgsql-simple-0.1.2: A mid-level PostgreSQL client library.

Portabilityportable
Stabilityexperimental
MaintainerChris Done <chrisdone@gmail.com>
Safe HaskellNone

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.

Synopsis

Documentation

class QueryParams a whereSource

A collection type that can be turned into a list of rendering Actions.

Instances should use the render method of the Param class to perform conversion of each element of the collection.

Methods

renderParams :: a -> [Action]Source

Render a collection of values.

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)