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

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>

Collaboration diagram for iron_query::OrderByTerm:
Collaboration graph
[legend]

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.
 

Detailed Description

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}}).


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