class js.html.idb.Cursor
Available on js
Sub classes | ||||
![]() | CursorWithValue |
|
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.
Class Fields
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 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.
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 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.
Instance Fields
On getting, returns the direction of traversal of the cursor. See Constants for possible values.
Returns the key for the record at the cursor's position. If the cursor is outside its range, this is undefined
.
var primaryKey:Dynamic
Returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its range, this is undefined
.