Skip to main content

Module statement

Module statement 

Source
Expand description

What INSERT, UPDATE and DELETE have in common: they write to one table, and any of them can be asked for the rows it touched.

Structs§

Returning
<statement> RETURNING <selection>. A distinct type rather than a flag on the statement, because Sel has to survive to the point rows are decoded — and one type rather than three, because the clause is the same clause whichever statement it follows.

Traits§

Statement
A statement that writes to a single table. Sealed: the three writing statements are the whole set, and Returning is defined against this rather than against each of them.

Type Aliases§

WrittenTable
The scope a RETURNING clause is checked against: the table being written to, and nothing else.