idb.KeyRange

KeyRange

package js-html-idb

Available on js

A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:

Documentation IDBKeyRange by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only lower:Dynamic

Lower bound of the key range.

read only lowerOpen:Bool

Returns false if the lower-bound value is included in the key range.

read only upper:Dynamic

Upper bound of the key range.

read only upperOpen:Bool

Returns false if the upper-bound value is included in the key range.

Methods

includes (key:Dynamic):Bool

Throws:

null DOMError

Static methods

static bound (lower:Dynamic, upper:Dynamic, lowerOpen:Bool = false, upperOpen:Bool = false):KeyRange

Throws:

null DOMError

static lowerBound (lower:Dynamic, open:Bool = false):KeyRange

Throws:

null DOMError

static only (value:Dynamic):KeyRange

Throws:

null DOMError

static upperBound (upper:Dynamic, open:Bool = false):KeyRange

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/idb/KeyRange.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部