Class

WhereClause

WhereClause(clauseopt)

Constructor

# new WhereClause(clauseopt)

The WHERE clause

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

View Source query/clauses/WhereClause.ts, line 11

Extends

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;

Overrides:
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

Overrides:
See:

View Source query/Clause.ts, line 50

# groupBy(selector) → {Executor}

Groups records by an attribute

Parameters:
Name Type Description
selector GroupBySelector
Inherited From:
Implements:

View Source query/options.ts, line 40

Executor

# hasErrors(exceptions) → {ModelErrorDefinition|undefined}

Parameters:
Name Type Description
exceptions Array

View Source query/clauses/WhereClause.ts, line 118

ModelErrorDefinition | undefined

# limit(selector) → {OffsetOption}

Limits the results to the provided number

Parameters:
Name Type Description
selector LimitSelector
Inherited From:
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
Inherited From:
Implements:

View Source query/options.ts, line 59

Executor

# orderBy(selector) → {LimitOption|OffsetOption}

Orders the results by the provided attribute and according to the provided direction

Parameters:
Name Type Description
selector OrderBySelector
Inherited From:
Implements:

View Source query/options.ts, line 97

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