|
IronQuery
A SQL-first query builder for C++
|
A single ORDER BY term: an expression plus its sort direction and NULL placement. Implicitly constructible from just an Expr for the common ascending case, e.g. OrderBy({col1, {col2, SortDirection::kDescending}}).
More...
#include <order_by.hpp>

Public Member Functions | |
| OrderByTerm (Expr expr, SortDirection direction=SortDirection::kAscending, NullsOrder nulls_order=NullsOrder::kDefault) | |
Wraps expr with the given sort direction (ascending by default) and nulls_order (server default by default). | |
Public Attributes | |
| Expr | expr |
| The expression being sorted on. | |
| SortDirection | direction |
Sort direction (ASC/DESC). | |
| NullsOrder | nulls_order |
NULLS FIRST/LAST placement. | |
A single ORDER BY term: an expression plus its sort direction and NULL placement. Implicitly constructible from just an Expr for the common ascending case, e.g. OrderBy({col1, {col2, SortDirection::kDescending}}).