Copyright | (c) 2011 MailRank Inc. (c) 2011-2012 Leon P Smith (c) 2012-2013 Janne Hellsten |
---|---|
License | BSD3 |
Maintainer | Janne Hellsten <jjhellst@gmail.com> |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Database.SQLite.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.
Documentation
Generic derivation of ToRow
. For details about what can be
derived refer to GFromRow
.
Since: 0.4.18.1
Instances
GToRow (U1 :: Type -> Type) # | |
Defined in Database.SQLite.Simple.ToRow | |
(GToRow a, GToRow b) => GToRow (a :*: b) # | |
Defined in Database.SQLite.Simple.ToRow | |
ToField a => GToRow (K1 i a :: Type -> Type) # | |
Defined in Database.SQLite.Simple.ToRow | |
GToRow a => GToRow (M1 i c a) # | |
Defined in Database.SQLite.Simple.ToRow |
A collection type that can be turned into a list of SQLData
elements.
Since version 0.4.18.1 it is possible in some cases to derive a
generic implementation for ToRow
. Refer to the documentation for
FromRow
to see how this can be
done.
Minimal complete definition
Nothing
Methods
ToField
a collection of values.