idb.Cursor

Cursor

package js-html-idb

extended by CursorWithValue

Available on js

The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.

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

See:

Variables

read only direction:CursorDirection

Returns the direction of traversal of the cursor. See Constants for possible values.

read only key:Dynamic

Returns the key for the record at the cursor's position. If the cursor is outside its range, this is set to undefined. The cursor's key can be any data type.

read only primaryKey:Dynamic

Returns the cursor's current effective primary key. If the cursor is currently being iterated or has iterated outside its range, this is set to undefined. The cursor's primary key can be any data type.

read only source:EitherType<ObjectStore, Index>

Returns the IDBObjectStore or IDBIndex that the cursor is iterating- This function never returns null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active-

Methods

advance (count:Int):Void

Throws:

null DOMError

continue_ (?key:Dynamic):Void

Throws:

null DOMError

delete_ ():Request

Throws:

null DOMError

update (value:Dynamic):Request

Throws:

null DOMError

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部