| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Core.Sql.Insert
Description
Internal to the arbiter packages. Not covered by the PVP.
INSERT fragments derived from a profunctor Codec. The column list, the
placeholders, and the parameters all come from one value.
Documentation
insertFrag :: Codec s a -> s -> Query ()Source #
A single row: (c1, c2, ...) VALUES (?, ?, ...) with one scalar parameter
per column, from cScalar.
batchFrag :: Codec s a -> [s] -> Query ()Source #
A batch source: (c1, ...) SELECT c1, ... FROM (SELECT unnest(?::t1[]) AS c1,
...) src with one array parameter per column, from cArray.
Columns a statement reads from a one-row source aliased edit in place of its own.
Constructors
| RowEdit | |
Fields
| |