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
Name | Type | Description |
---|---|---|
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
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 LimitClause
statement created from the object provided.