A key range can be a single value or a range with upper and lower or endpoints. If the key range has both upper and lower bounds, it is bounded; if it has no bounds, it is unbounded. A bounded range can either be open (the endpoints are excluded) or closed endpoints are included). To retrieve all keys within a certain you can use the following code constructs:
A key range can be a single value or a range with upper and lower or endpoints. If the key range has both upper and lower bounds, it is bounded; if it has no bounds, it is unbounded. A bounded range can either be open (the endpoints are excluded) or closed endpoints are included). To retrieve all keys within a certain you can use the following code constructs:
(bound this & args)
Method.
idb.IDBKeyRange
: The newly created key range.
var myIDBKeyRange = IDBKeyRange.bound(lower, upper); var myIDBKeyRange = IDBKeyRange.bound(lower, upper, lowerOpen); var myIDBKeyRange = IDBKeyRange.bound(lower, upper, lowerOpen, upperOpen);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound
Method. `idb.IDBKeyRange`: The newly created key range. `var myIDBKeyRange = IDBKeyRange.bound(lower, upper); var myIDBKeyRange = IDBKeyRange.bound(lower, upper, lowerOpen); var myIDBKeyRange = IDBKeyRange.bound(lower, upper, lowerOpen, upperOpen);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound`
(includes this key)
Method.
key The key you want to check for in your key range. This can any type.
var isIncluded = myKeyRange.includes(key)
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes
Method. key The key you want to check for in your key range. This can any type. `var isIncluded = myKeyRange.includes(key)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes`
(lower this)
Property.
The lower bound of the key range (can be any type.)
var lower = myKeyRange.lower
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower
Property. The lower bound of the key range (can be any type.) `var lower = myKeyRange.lower` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower`
(lower-bound this & args)
Method.
idb.IDBKeyRange
: The newly created key range.
var myIDBKeyRange = IDBKeyRange.lowerBound(lower); var myIDBKeyRange = IDBKeyRange.lowerBound(lower, open);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound
Method. `idb.IDBKeyRange`: The newly created key range. `var myIDBKeyRange = IDBKeyRange.lowerBound(lower); var myIDBKeyRange = IDBKeyRange.lowerBound(lower, open);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound`
(lower-open this)
Property.
A web.boolean
:
var lowerOpen = myKeyRange.lowerOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen
Property. A `web.boolean`: `var lowerOpen = myKeyRange.lowerOpen` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen`
(only this value)
Method.
value is the value for the new key range.
var myIDBKeyRange = IDBKeyRange.only(value);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only
Method. value is the value for the new key range. `var myIDBKeyRange = IDBKeyRange.only(value);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only`
(set-lower! this val)
Property.
The lower bound of the key range (can be any type.)
var lower = myKeyRange.lower
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower
Property. The lower bound of the key range (can be any type.) `var lower = myKeyRange.lower` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower`
(set-lower-open! this val)
Property.
A web.boolean
:
var lowerOpen = myKeyRange.lowerOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen
Property. A `web.boolean`: `var lowerOpen = myKeyRange.lowerOpen` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen`
(set-upper! this val)
Property.
The upper bound of the key range (can be any type.)
var upper = myKeyRange.upper
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper
Property. The upper bound of the key range (can be any type.) `var upper = myKeyRange.upper` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper`
(set-upper-open! this val)
Property.
A web.boolean
:
var upperOpen = myKeyRange.upperOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen
Property. A `web.boolean`: `var upperOpen = myKeyRange.upperOpen` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen`
(upper this)
Property.
The upper bound of the key range (can be any type.)
var upper = myKeyRange.upper
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper
Property. The upper bound of the key range (can be any type.) `var upper = myKeyRange.upper` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper`
(upper-bound this & args)
Method.
idb.IDBKeyRange
: The newly created key range.
var myIDBKeyRange = IDBKeyRange.upperBound(upper[, open=false])
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound
Method. `idb.IDBKeyRange`: The newly created key range. `var myIDBKeyRange = IDBKeyRange.upperBound(upper[, open=false])` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound`
(upper-open this)
Property.
A web.boolean
:
var upperOpen = myKeyRange.upperOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen
Property. A `web.boolean`: `var upperOpen = myKeyRange.upperOpen` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close