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

NameTypeDescription
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

NameTypeDescription
Factory<C, T>

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

C

The related container with the data for the OffsetClause statement.

O

The base base from where to create the OffsetClause statement.

Returns

The OffsetClause statement created from the object provided.