IronQuery
A SQL-first query builder for C++
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
iron_query::SelectItem Class Referencefinal

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: