IDBCursorWithValue
The IDBCursorWithValue
interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
Properties
The direction
read-only property of the direction of traversal of the cursor (set using section below for possible values.
The key
read-only property of the position.
The primaryKey
read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
The request
read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
Functions
The continue()
method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
The continuePrimaryKey()
method of the matches the key parameter as well as whose primary key matches the primary key parameter.
The delete()
method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
The update()
method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.