Skip to main content

Class: OrderByItem

Defined in: lang-sql/src/ast/select.ts:95

A single expression in an ORDER BY clause with direction and nulls ordering.

Constructors

Constructor

new OrderByItem(expression, direction?, nullsFirst?): OrderByItem

Defined in: lang-sql/src/ast/select.ts:101

Parameters

ParameterTypeDescription
expressionASTNodeThe sort expression.
direction?string-
nullsFirst?boolean-

Returns

OrderByItem

Properties

ascending

ascending: boolean

Defined in: lang-sql/src/ast/select.ts:97

true for ASC (default), false for DESC.


expression

expression: ASTNode

Defined in: lang-sql/src/ast/select.ts:103

The sort expression.


nullsFirst

nullsFirst: boolean

Defined in: lang-sql/src/ast/select.ts:99

true when NULLS FIRST is in effect; defaults to true for DESC, false for ASC.