LimitClause

Description

Interface with the methods available to make a LIMIT statement.

Methods

limit( limit: number ): T

Set the limit of results the query should return.

Parameters

NameTypeDescription
number

The number to be applied as limit.

Returns

An OffsetClause or the FinishClause/SubFinishClause depending if the offset method has been called before or not.

LimitClause

Description

Constant with the utils for LimitClause objects.

Methods

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

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

Parameters

NameTypeDescription
Factory<C, T>

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

C

The related container with the data for the LimitClause statement.

O

The base base from where to create the LimitClause statement.

Returns

The LimitClause statement created from the object provided.