postgresql-simple-0.5.2.1: Mid-Level PostgreSQL client library

Copyright(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P Smith
LicenseBSD3
MaintainerLeon P Smith <leon@melding-monads.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.Simple.ToRow

Description

The ToRow 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 ToRow a where Source #

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

Instances should use the toField method of the ToField class to perform conversion of each element of the collection.

Methods

toRow :: a -> [Action] Source #

toRow :: (Generic a, GToRow (Rep a)) => a -> [Action] Source #

Instances

ToRow () Source # 

Methods

toRow :: () -> [Action] Source #

ToField a => ToRow [a] Source # 

Methods

toRow :: [a] -> [Action] Source #

ToField a => ToRow (Only a) Source # 

Methods

toRow :: Only a -> [Action] Source #

(ToField a, ToField b) => ToRow (a, b) Source # 

Methods

toRow :: (a, b) -> [Action] Source #

(ToRow a, ToRow b) => ToRow ((:.) a b) Source # 

Methods

toRow :: (a :. b) -> [Action] Source #

(ToField a, ToField b, ToField c) => ToRow (a, b, c) Source # 

Methods

toRow :: (a, b, c) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d) => ToRow (a, b, c, d) Source # 

Methods

toRow :: (a, b, c, d) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e) => ToRow (a, b, c, d, e) Source # 

Methods

toRow :: (a, b, c, d, e) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e, ToField f) => ToRow (a, b, c, d, e, f) Source # 

Methods

toRow :: (a, b, c, d, e, f) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e, ToField f, ToField g) => ToRow (a, b, c, d, e, f, g) Source # 

Methods

toRow :: (a, b, c, d, e, f, g) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e, ToField f, ToField g, ToField h) => ToRow (a, b, c, d, e, f, g, h) Source # 

Methods

toRow :: (a, b, c, d, e, f, g, h) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e, ToField f, ToField g, ToField h, ToField i) => ToRow (a, b, c, d, e, f, g, h, i) Source # 

Methods

toRow :: (a, b, c, d, e, f, g, h, i) -> [Action] Source #

(ToField a, ToField b, ToField c, ToField d, ToField e, ToField f, ToField g, ToField h, ToField i, ToField j) => ToRow (a, b, c, d, e, f, g, h, i, j) Source # 

Methods

toRow :: (a, b, c, d, e, f, g, h, i, j) -> [Action] Source #