openCursor method

IDBRequest openCursor([
  1. JSAny? query,
  2. IDBCursorDirection direction
])

The openCursor() method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.

The method sets the position of the cursor to the appropriate record, based on the specified direction.

If the key range is not specified or is null, then the range includes all the records.

Implementation

external IDBRequest openCursor([
  JSAny? query,
  IDBCursorDirection direction,
]);