|
IronQuery
A SQL-first query builder for C++
|
SQL table column. More...
#include <column.hpp>
Public Member Functions | |
| operator Expr () const | |
| Converts this column reference into an Expr wrapping its name. | |
| Expr | ToExpr () const |
Explicitly converts this column reference into an Expr wrapping its name, for calling Expr members Column has no dedicated overload for (e.g. col.ToExpr().IsNull(), col.ToExpr().Between(a, b)). | |
| SelectItem | As (std::string_view alias) const |
Names this column in a SELECT list: this AS alias. | |
Public Attributes | |
| std::string | name |
| Column name. | |
| std::string | type |
| bool | is_nullable {false} |
| Whether column value can be NULL. | |
SQL table column.
| SelectItem iron_query::Column::As | ( | std::string_view | alias | ) | const |
Names this column in a SELECT list: this AS alias.
| InvalidIdentifier | if alias is not a valid identifier. |
| std::string iron_query::Column::type |