Class

Statement

Statement(statementopt)

Constructor

# new Statement(statementopt)

Statement Class

holds all the clauses until they can be processed

Parameters:
Name Type Attributes Description
statement ModelArg <optional>
Implements:

View Source query/Statement.ts, line 13

Extends

  • Model

Methods

# addClause(clause)

Adds a clause to the Statement

Parameters:
Name Type Description
clause Clause

View Source query/Statement.ts, line 195

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

Processes itself

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

View Source interfaces/Executor.ts, line 14

Promise.<V>

# hasErrors(exceptions) → {ModelErrorDefinition|undefined}

Parameters:
Name Type Description
exceptions Array

View Source query/Statement.ts, line 189

ModelErrorDefinition | undefined

# abstract paginate(size) → {Promise.<Paginator.<Y, Q>>}

Parameters:
Name Type Description
size number

View Source query/Statement.ts, line 182

Promise.<Paginator.<Y, Q>>

# raw(rawInput, args) → {Promise.<R>}

Executes a raw instruction in the Database

Parameters:
Name Type Description
rawInput
args
Implements:

View Source interfaces/RawExecutor.ts, line 13

Promise.<R>

# setTarget(clazz)

Defines the output class (when existing)

Parameters:
Name Type Description
clazz Constructor

View Source query/Statement.ts, line 201