Skip to main content

Module update

Module update 

Source
Expand description

UPDATE builder states and clause methods.

UpdateBuilder is the builder returned by QueryBuilder::update. Its state parameter only allows steps in SQL order: SET, then FROM, WHERE and RETURNING. Column checks on WHERE and RETURNING happen at the method call: they may only read the updated table and the FROM source.

Structs§

UpdateFromSet
Builder state after UPDATE ... SET ... FROM source.
UpdateInitial
Marker for the initial state of UpdateBuilder.
UpdateReturningSet
Marker for the state after RETURNING clause.
UpdateSetClauseSet
Marker for the state after SET clause.
UpdateWhereSet
Marker for the state after WHERE clause.

Type Aliases§

UpdateBuilder
A PostgreSQL UPDATE being built: a QueryBuilder in one of the Update* states.