limit

abstract fun limit(limit: Expression): Limit(source)

Creates and chains a Limit object to limit the number query results.

Return

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

Parameters

limit

The limit expression.


abstract fun limit(limit: Expression, offset: Expression?): Limit(source)

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 expression.

offset

The offset expression.