Transitional representation for UPDATE query.
More...
#include <update.hpp>
◆ From()
Sets the FROM clause, so SET/WHERE expressions may reference columns of tbl. tbl may be a table, a join, or anything VirtualTable::As has aliased.
- Exceptions
-
| LogicError | if tbl is a subquery without an alias, or if the FROM clause was already set. |
◆ Returning() [1/2]
Sets the RETURNING clause to a single entry.
- Exceptions
-
| LogicError | if the RETURNING clause was already set. |
◆ Returning() [2/2]
| Update iron_query::Update::Returning |
( |
std::initializer_list< SelectItem > |
items | ) |
&& |
Sets the RETURNING clause to a comma-separated list of entries.
- Exceptions
-
| LogicError | if the RETURNING clause was already set. |
◆ Set()
| Update iron_query::Update::Set |
( |
const Expr & |
column, |
|
|
const Expr & |
value |
|
) |
| && |
Adds a column = value assignment to the SET clause.
- Note
- Does not check that
column names an actual column of tbl, nor that value's type matches that column's declared type.
◆ ToString()
| std::string iron_query::Update::ToString |
( |
| ) |
const |
◆ Where()
Sets the WHERE clause.
- Exceptions
-
The documentation for this class was generated from the following file: