haXe API Documentation
Back | Index
extern class js.html.idb.Cursor
Available in js
The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.

Documentation for this class was provided by MDN.
var direction(default,null) : String
On getting, returns the direction of traversal of the cursor. See Constants for possible values.
var key(default,null) : Dynamic
Returns the key for the record at the cursor's position. If the cursor is outside its range, this is undefined.
var primaryKey(default,null) : Dynamic
Returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its range, this is undefined.
var source(default,null) : Any
On getting, 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.
function advance(count : Int) : Void
function delete() : Request
function update(value : Dynamic) : Request
static inline var NEXT : Int
The cursor shows all records, including duplicates. It starts at the lower bound of the key range and moves upwards (monotonically increasing in the order of keys).
static inline var NEXT_NO_DUPLICATE : Int
The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first one iterated is retrieved. It starts at the lower bound of the key range and moves upwards.
static inline var PREV : Int
The cursor shows all records, including duplicates. It starts at the upper bound of the key range and moves downwards (monotonically decreasing in the order of keys).
static inline var PREV_NO_DUPLICATE : Int
The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first one iterated is retrieved. It starts at the upper bound of the key range and moves downwards.
Back | Index