|
IronQuery
A SQL-first query builder for C++
|
A single entry of a SELECT list: an expression, optionally renamed with Expr::As. Kept distinct from Expr because x AS y is legal nowhere else, so Where(x.As("y")) or Expr::Call("ABS", {x.As("y")}) do not compile.
More...
#include <select_item.hpp>
Public Member Functions | |
| template<typename T , std::enable_if_t< std::is_convertible_v< T, Expr >, int > = 0> | |
| SelectItem (T &&value) | |
| Implicitly wraps anything an Expr can be built from, e.g. an Expr, a Column, or an rvalue Condition. | |
| std::string | ToString () const |
| Renders the entry as SQL text. | |
Friends | |
| class | Expr |
A single entry of a SELECT list: an expression, optionally renamed with Expr::As. Kept distinct from Expr because x AS y is legal nowhere else, so Where(x.As("y")) or Expr::Call("ABS", {x.As("y")}) do not compile.