Limit

Limits the number of results returned by a select query. It is possible, like in the Where attribute, to specify a value using the arguments by adding the dollar sign and the argument's index in the method.

Constructors

this
this(L lower, U upper)
Undocumented in source.
this
this(U upper)
Undocumented in source.

Members

Variables

lower
string lower;
upper
string upper;
Undocumented in source.

Examples

interface ExampleRepository : Repository!Example {

   @Limit(5)
   Example[] select5();

   @Limit("$0", "$1")
   Example[] selectInRange(size_t lowerLimit, size_t upperLimit);

}

Meta