Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
MSSQL Types Update
This module defines the Update-related IR types specific to MSSQL.
Synopsis
- data UpdateOperator v
- type UpdateSet = HashMap ColumnName (UpdateOperator Expression)
- type UpdateOutput = Output Inserted
- data Update = Update {}
Documentation
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