Safe Haskell | None |
---|---|
Language | Haskell2010 |
Postgres Translate Update
Translates IR update to Postgres-specific SQL UPDATE statements.
Synopsis
- data UpdateCTE
- mkUpdateCTE :: forall pgKind. Backend ('Postgres pgKind) => AnnotatedUpdate ('Postgres pgKind) -> UpdateCTE
- expandOperator :: [ColumnInfo ('Postgres pgKind)] -> (PGCol, UpdateOpExpression SQLExp) -> SetExpItem
Documentation
Update TopLevelCTE | Used for update_table and update_table_by_pk. |
MultiUpdate [TopLevelCTE] | Used for update_table_many. |
mkUpdateCTE :: forall pgKind. Backend ('Postgres pgKind) => AnnotatedUpdate ('Postgres pgKind) -> UpdateCTE Source #
Create the update CTE.
expandOperator :: [ColumnInfo ('Postgres pgKind)] -> (PGCol, UpdateOpExpression SQLExp) -> SetExpItem Source #