Skip to content

WhereClause.inAnyRange()

David Fahlander edited this page Feb 24, 2016 · 6 revisions

THIS METHOD IS PART OF NEXT RELEASE v1.3.0. CAN BE PREVIEWED IN BRANCH "es6"

Syntax

table.where(indexOrPrimKey).inAnyRange(ranges, options)

Parameters

indexOrPrimKey: String Name of an index or primary key registered in Version.stores()
ranges Array of Arrays defining ranges to search [[lowerBound, upperBound],...]
options Options of how to tread range starts and ends
options.includeLowers Whether lowerBound should be included or not. Default: true. Specify 'false' explicitly if lowerBound should NOT be included in the results.
options.includeUppers Whether upperBound should be included or not. Default: false

Return Value

Collection or WriteableCollection depending on table type

Remarks

Clone this wiki locally