This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

IDBKeyRange

Summary

A range of keys defined for an object store or index.

Properties

lower
This value is the lower-bound of the key range.
lowerOpen
Returns false if the lower-bound value is included in the key range. Returns true if the lower-bound value is excluded from the key range.
upperOpen
Returns false if the upper-bound value is included in the key range. Returns true if the upper-bound value is excluded from the key range.

Methods

bound
Creates and returns a new key range with lower set to lower, lowerOpen set to lowerOpen, upper set to upper and upperOpen set to upperOpen.
lowerBound
Creates and returns a new key range with lower set to lower, lowerOpen set to open, upper set to undefined and and upperOpen set to true.
only
Creates and returns a new key range with both lower and upper set to value and both lowerOpen and upperOpen set to false.
upperBound
Creates and returns a new key range with lower set to undefined, lowerOpen set to true, upper set to upper and and upperOpen set to open.

Events

No events.

Related specifications

W3C IndexedDB Specification
W3C Proposed Recommendation

Attributions