OffsetClause
Description
Interface with the methods available to make a OFFSET statement.
Methods
offset( offset: number ): T
Set the offset of results the query should return from.
Parameters
Name | Type | Description |
---|---|---|
number | The number to be applied as offset. |
Returns
A OffsetClause or the FinishClause/SubFinishClause depending if the limit method has been called before or not.
OffsetClause
Description
Constant with the utils for OffsetClause
objects.
Methods
createFrom<C extends Container<QueryToken<QueryClauseToken> | SubSelectToken>, T extends object, O extends object>( genericFactory: Factory<C, T>, container: C, object: O ): O & OffsetClause<T>
Factory function that allows to crete a OffsetClause
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 OffsetClause
statement created from the object provided.