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, becauseSelhas 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
Returningis defined against this rather than against each of them.
Type Aliases§
- Written
Table - The scope a
RETURNINGclause is checked against: the table being written to, and nothing else.