limit

fun LimitRouter.limit(limit: Int, offset: Int? = null): Limit

Creates and chains a Limit object to skip the returned results for the given offset position and to limit the number of results to not more than the given limit value.

Return

The Limit object that represents the LIMIT clause of the query.

Parameters

limit

The limit value.

offset

The offset value.