Constructor
# new SelectClause(clauseopt)
The SELECT clause
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
clause |
ClauseArg
|
<optional> |
- Implements:
Extends
Members
Methods
# count(selector) → {CountOption.<M>}
counts the records
Parameters:
Name | Type | Description |
---|---|---|
selector |
SelectSelector
|
- Implements:
CountOption.<M>
# distinct(selector) → {DistinctOption.<M>}
selects distinct values
Parameters:
Name | Type | Description |
---|---|---|
selector |
SelectSelector
|
- Implements:
DistinctOption.<M>
# execute(args) → {Promise.<V>}
Processes itself
Parameters:
Name | Type | Description |
---|---|---|
args |
Array.<any>
|
- Inherited From:
- Implements:
Promise.<V>
# from(tableName) → {WhereOption}
selects records from a table
Parameters:
Name | Type | Description |
---|---|---|
tableName |
Constructor
|
- Inherited From:
- Implements:
# max(selector) → {MaxOption.<M>}
the maximum value
Parameters:
Name | Type | Description |
---|---|---|
selector |
SelectSelector
|
- Implements:
MaxOption.<M>
# min(selector) → {MinOption.<M>}
selects the minimum value
Parameters:
Name | Type | Description |
---|---|---|
selector |
SelectSelector
|
- Implements:
MinOption.<M>
# async paginate(size) → {Promise.<Paginator.<R, Q>>}
Parameters:
Name | Type | Description |
---|---|---|
size |
number
|
- Inherited From:
Promise.<Paginator.<R, Q>>