| Copyright | (c) 2011 MailRank Inc. (c) 2011-2012 Leon P Smith |
|---|---|
| License | BSD3 |
| Maintainer | Leon P Smith <leon@melding-monads.com> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
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.
- class ToRow a where
Documentation
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