Skip to content

WhereClause.between()

David Fahlander edited this page Mar 28, 2014 · 4 revisions

Syntax

table.where(indexOrPrimKey).between(lowerBound, upperBound, includeLower, includeUpper)

Parameters

indexOrPrimKey: String Name of an index or primary key registered in Version.stores()
lowerBound Lower bound
upperBound Upper bound
includeLower Whether lowerBound should be included or not. Default: true. Specify 'false' explicitly if lowerBound should NOT be included in the results.
includeUpper Whether upperBound should be included or not. Default: false

Return Value

Collection or WriteableCollection depending on table type

Clone this wiki locally