Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.DuckDB.Simple.ToRow
Description
The ToRow
class converts Haskell values into lists of FieldBinding
s that
can be consumed by statement binding functions.
Synopsis
- class ToRow a where
- toRow :: a -> [FieldBinding]
- class GToRow f where
- gtoRow :: f p -> [FieldBinding]
Documentation
Types that can be transformed into parameter bindings.
Minimal complete definition
Nothing
Methods
toRow :: a -> [FieldBinding] Source #
Instances
Generic helper for deriving ToRow
.
Methods
gtoRow :: f p -> [FieldBinding] Source #
Instances
GToRow (U1 :: Type -> Type) Source # | |
Defined in Database.DuckDB.Simple.ToRow Methods gtoRow :: U1 p -> [FieldBinding] Source # | |
(GToRow a, GToRow b) => GToRow (a :*: b) Source # | |
Defined in Database.DuckDB.Simple.ToRow Methods gtoRow :: (a :*: b) p -> [FieldBinding] Source # | |
ToField a => GToRow (K1 i a :: Type -> Type) Source # | |
Defined in Database.DuckDB.Simple.ToRow Methods gtoRow :: K1 i a p -> [FieldBinding] Source # | |
GToRow a => GToRow (M1 i c a) Source # | |
Defined in Database.DuckDB.Simple.ToRow Methods gtoRow :: M1 i c a p -> [FieldBinding] Source # |