Safe Haskell | None |
---|---|
Language | Haskell2010 |
MSSQL Types Update
This module defines the Update-related IR types specific to MSSQL.
Synopsis
- data BackendUpdate v = BackendUpdate {
- updateOperations :: HashMap ColumnName (UpdateOperator v)
- data UpdateOperator v
- type UpdateSet = HashMap ColumnName (UpdateOperator Expression)
- type UpdateOutput = Output Inserted
- data Update = Update {}
Documentation
data BackendUpdate v Source #
The MSSQL-specific data of an Update expression.
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.
BackendUpdate | |
|
Instances
data UpdateOperator v Source #
The various update operators
supported by MSSQL,
i.e. the _set
, _inc
operators that appear in the schema.
TODO: Docs for MSSQL! See Update Mutations User docs
Instances
type UpdateSet = HashMap ColumnName (UpdateOperator Expression) Source #
type UpdateOutput = Output Inserted Source #
UPDATE [table_alias] SET [table_alias].column = value
OUTPUT INSERTED.column INTO #updated
FROM [table_name] AS [table_alias] WHERE filter-expression