Class

OrderByClause

OrderByClause(clauseopt)

Constructor

# new OrderByClause(clauseopt)

The ORDER BY clause

Parameters:
Name Type Attributes Description
clause ClauseArg <optional>
Implements:

View Source query/clauses/OrderByClause.ts, line 4

Extends

Members

# protected selector

Stores the selector

Properties:
Name Type Description
selector
Overrides:

View Source query/clauses/SelectorBasedClause.ts, line 29

Methods

# build() → {Q}

Method to build and validate the prepared statement before the execution;

.

Method to build and validate the prepared statement before the execution;

Inherited From:
Implements:

View Source query/options.ts, line 21

for invalid statements

QueryError
Q

# execute(args) → {Promise.<V>}

Processes itself

Parameters:
Name Type Description
args Array.<any>
Inherited From:
Implements:

View Source interfaces/Executor.ts, line 14

Promise.<V>

# getPriority()

return the priority of the clause

Inherited From:
See:

View Source query/Clause.ts, line 50

# groupBy(selector) → {Executor}

Parameters:
Name Type Description
selector GroupBySelector

View Source query/clauses/OrderByClause.ts, line 62

Executor

# limit(selector) → {OffsetOption}

Limits the results to the provided number

Parameters:
Name Type Description
selector LimitSelector
Implements:

View Source query/options.ts, line 78

OffsetOption

# offset(selector) → {Executor}

Offsets the results by the provided selector

Parameters:
Name Type Description
selector OffsetSelector
Implements:

View Source query/options.ts, line 59

Executor

# async paginate(size) → {Promise.<Paginator.<R, Q>>}

Parameters:
Name Type Description
size number
Inherited From:

View Source query/Clause.ts, line 111

Promise.<Paginator.<R, Q>>