HavingClause
Extends

Description

Interface with the methods available to make a HAVING statement.

Methods

having( conditionsFn: (builder: PatternBuilder) => string | number | boolean | Date | Expression<ConditionalOrExpressionToken> | (string | number | boolean | Date | Expression<ConditionalOrExpressionToken>)[] ): OrderClause<T> & T

Set the conditions to filter the sequence of solutions the query will retrieve.

Parameters

NameTypeDescription
(builder: PatternBuilder) => string | number | boolean | Date | Expression<ConditionalOrExpressionToken> | (string | number | boolean | Date | Expression<ConditionalOrExpressionToken>)[]

Function that create the conditions to be applied to the solutions filtering.

Returns

Object with the methods to keep constructing the query.

HavingClause

Description

Constant with the utils for HavingClause objects.

Methods

createFrom<C extends Container<QueryToken<QueryClauseToken> | SubSelectToken>, T extends FinishClause, O extends object>( genericFactory: Factory<C, T>, container: C, object: O ): O & HavingClause<T>

Factory function that allows to crete a HavingClause from the object provided.

Parameters

NameTypeDescription
Factory<C, T>

The factory to create the generic finish of the HavingClause statement.

C

The related container with the data for the HavingClause statement.

O

The base base from where to create the HavingClause statement.

Returns

The HavingClause statement created from the object provided.