Class

SelectClause

SelectClause(clauseopt)

Constructor

# new SelectClause(clauseopt)

The SELECT clause

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

View Source query/clauses/SelectClause.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

# abstract build(query) → {Q}

Parameters:
Name Type Description
query Q

View Source query/clauses/SelectClause.ts, line 77

Q

# count(selector) → {CountOption.<M>}

counts the records

Parameters:
Name Type Description
selector SelectSelector
Implements:

View Source query/options.ts, line 234

CountOption.<M>

# distinct(selector) → {DistinctOption.<M>}

selects distinct values

Parameters:
Name Type Description
selector SelectSelector
Implements:

View Source query/options.ts, line 210

DistinctOption.<M>

# 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>

# from(tableName) → {WhereOption}

selects records from a table

Parameters:
Name Type Description
tableName Constructor
Inherited From:
Implements:

View Source query/options.ts, line 147

WhereOption

# getPriority()

return the priority of the clause

Inherited From:
See:

View Source query/Clause.ts, line 50

# max(selector) → {MaxOption.<M>}

the maximum value

Parameters:
Name Type Description
selector SelectSelector
Implements:

View Source query/options.ts, line 218

MaxOption.<M>

# min(selector) → {MinOption.<M>}

selects the minimum value

Parameters:
Name Type Description
selector SelectSelector
Implements:

View Source query/options.ts, line 226

MinOption.<M>

# 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>>