Cursor

extern class js.html.idb.CursorAvailable in jsThe 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) : StringOn getting, returns the direction of traversal of the cursor. See Constants for possible values. var key(default,null) : DynamicReturns the key for the record at the cursor's position. If the cursor is outside its range, this is undefined. var primaryKey(default,null) : DynamicReturns 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) : AnyOn 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 : IntThe 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 : IntThe 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 : IntThe 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 : IntThe 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.
version #18083, modified 2013-05-01 11:54:12 by api
0 comment