HavingClauseExtendsOrderClause<T>
Extends
OrderClause<T>
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
Name | Type | Description |
---|---|---|
(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
Name | Type | Description |
---|---|---|
Factory<C, T> | The factory to create the generic finish of the | |
C | The related container with the data for the | |
O | The base base from where to create the |
Returns
The HavingClause
statement created from the object provided.