Mixin: Limiting

Limiting

This mixin grants the capability of limiting the result set of a statement to a given number of items, via composition.

Methods


limit(count)

Defines the maximum number of items in the result set. This method does not cause the statement to be executed but changes the statement boundaries, which means that if it has been prepared before, it needs to be re-prepared.
Parameters:
Name Type Description
count Number The maximum size of the result set.
Throws:
Value is not a positive integer.
Returns:
The instance of the statement itself following a fluent API convention.
Type
Limiting