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.
web.storage.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. `web.storage.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.
[Read Only]
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. [Read Only] 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.
web.storage.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. `web.storage.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.
[Read Only]
A boolean
:
var lowerOpen = myKeyRange.lowerOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen
Property. [Read Only] A `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`
(upper this)
Property.
[Read Only]
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. [Read Only] 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.
web.storage.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. `web.storage.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.
[Read Only]
A boolean
:
var upperOpen = myKeyRange.upperOpen
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen
Property. [Read Only] A `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