Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Postgres Types Update
This module defines the Update-related IR types specific to Postgres.
Synopsis
- data UpdateOpExpression v
- = UpdateSet v
- | UpdateInc v
- | UpdateAppend v
- | UpdatePrepend v
- | UpdateDeleteKey v
- | UpdateDeleteElem v
- | UpdateDeleteAtPath [v]
- data PgUpdateVariant pgKind v
- = SingleBatch (UpdateBatch ('Postgres pgKind) UpdateOpExpression v)
- | MultipleBatches [UpdateBatch ('Postgres pgKind) UpdateOpExpression v]
- updateVariantIsEmpty :: PgUpdateVariant b v -> Bool
Documentation
data UpdateOpExpression v Source #
The various update operators
supported by PostgreSQL,
i.e. the _set
, _inc
operators that appear in the schema.
UpdateSet v | |
UpdateInc v | |
UpdateAppend v | |
UpdatePrepend v | |
UpdateDeleteKey v | |
UpdateDeleteElem v | |
UpdateDeleteAtPath [v] |
Instances
data PgUpdateVariant pgKind v Source #
The different variants
of updates that the Postgres backend supports.
This is parameterised over v
which enables different phases of IR
transformation to maintain the overall structure while enriching/transforming
the data at the leaves.
SingleBatch (UpdateBatch ('Postgres pgKind) UpdateOpExpression v) | |
MultipleBatches [UpdateBatch ('Postgres pgKind) UpdateOpExpression v] |
Instances
updateVariantIsEmpty :: PgUpdateVariant b v -> Bool Source #
Are we updating anything?