openKeyCursor method

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

The openKeyCursor() method of the IDBObjectStore interface returns an IDBRequest object whose result will be set to an IDBCursor that can be used to iterate through matching results. Used for iterating through the keys of an object store with a cursor.

To determine if the add operation has completed successfully, listen for the results's success event.

Implementation

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