openKeyCursor method
The openKeyCursor()
method of the
IDBIndex interface returns an IDBRequest object, and, in
a separate thread, creates a cursor over the specified key range, as
arranged by this
index.
The method sets the position of the cursor to the appropriate key, based on the specified direction.
If the key range is not specified or is null, then the range includes all the keys.
Note: Cursors returned by
openKeyCursor()
do not make the referenced value available asIDBIndex.openCursor
does. This makes obtaining a list of keys much more efficient.
Implementation
external IDBRequest openKeyCursor([
JSAny? query,
IDBCursorDirection direction,
]);