3#include <iron_query/expr.hpp>
35 NullsOrder nulls_order = NullsOrder::kDefault);
Arbitrary SQL expression.
Definition expr.hpp:46
SortDirection
Sort direction for a single ORDER BY term. See iron_query::OrderByTerm.
Definition order_by.hpp:10
NullsOrder
Placement of NULLs within an ORDER BY term. See iron_query::OrderByTerm.
Definition order_by.hpp:18
@ kDefault
No explicit NULLS FIRST/LAST; the server's default applies (PostgreSQL: last for ascending,...
A single ORDER BY term: an expression plus its sort direction and NULL placement. Implicitly construc...
Definition order_by.hpp:31
SortDirection direction
Sort direction (ASC/DESC).
Definition order_by.hpp:40
Expr expr
The expression being sorted on.
Definition order_by.hpp:38
NullsOrder nulls_order
NULLS FIRST/LAST placement.
Definition order_by.hpp:42
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 de...