import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { IDBCursor } = dom;
This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
Properties
Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
Returns the IDBObjectStore or IDBIndex the cursor was opened from.
Methods
Advances the cursor to the next record in range.
Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
Delete the record pointed at by the cursor with a new value.
If successful, request's result will be undefined.
Updated the record pointed at by the cursor with a new value.
Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
If successful, request's result will be the record's key.