Constructor
# new OrderByClause(clauseopt)
The ORDER BY clause
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
clause |
ClauseArg
|
<optional> |
Extends
Members
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:
for invalid statements
QueryError
Q
# execute(args) → {Promise.<V>}
Processes itself
Parameters:
Name | Type | Description |
---|---|---|
args |
Array.<any>
|
- Inherited From:
- Implements:
Promise.<V>
# limit(selector) → {OffsetOption}
Limits the results to the provided number
Parameters:
Name | Type | Description |
---|---|---|
selector |
LimitSelector
|
- Implements:
# offset(selector) → {Executor}
Offsets the results by the provided selector
Parameters:
Name | Type | Description |
---|---|---|
selector |
OffsetSelector
|
- Implements:
# async paginate(size) → {Promise.<Paginator.<R, Q>>}
Parameters:
Name | Type | Description |
---|---|---|
size |
number
|
- Inherited From:
Promise.<Paginator.<R, Q>>