squeal-postgresql-0.6.0.1: Squeal PostgreSQL Library

Copyright(c) Eitan Chatav 2019
Maintainereitan@morphism.tech
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Squeal.PostgreSQL.Manipulation.Update

Contents

Description

update statements

Synopsis

Update

update Source #

Arguments

:: (Has sch db schema, Has tab schema (Table table), Updatable table updates, SListI row) 
=> QualifiedAlias sch tab

table to update

-> NP (Aliased (Optional (Expression Ungrouped '[] '[] db params '[tab ::: TableToRow table]))) updates

modified values to replace old values

-> Condition Ungrouped '[] with db params '[tab ::: TableToRow table]

condition under which to perform update on a row

-> ReturningClause with db params '[tab ::: TableToRow table] row

results to return

-> Manipulation with db params row 

An update command changes the values of the specified columns in all rows that satisfy the condition.

update_ Source #

Arguments

:: (Has sch db schema, Has tab schema (Table table), Updatable table updates) 
=> QualifiedAlias sch tab

table to update

-> NP (Aliased (Optional (Expression Ungrouped '[] '[] db params '[tab ::: TableToRow table]))) updates

modified values to replace old values

-> Condition Ungrouped '[] with db params '[tab ::: TableToRow table]

condition under which to perform update on a row

-> Manipulation with db params '[] 

Update a row returning Nil.