Interface

IDBCursor

IDBCursor

This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.

View Source js/lib.dom.d.ts, line 4261

Members

void

# advance

Advances the cursor through the next count records in range.

View Source js/lib.dom.d.ts, line 4284

void

# continue

Advances the cursor to the next record in range.

View Source js/lib.dom.d.ts, line 4289

void

# continuePrimaryKey

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.

View Source js/lib.dom.d.ts, line 4294

IDBRequest.<undefined>

# delete

Delete the record pointed at by the cursor with a new value.

If successful, request's result will be undefined.

View Source js/lib.dom.d.ts, line 4299

IDBCursorDirection

# direction

Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.

View Source js/lib.dom.d.ts, line 4264

IDBValidKey

# key

Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.

View Source js/lib.dom.d.ts, line 4269

IDBValidKey

# primaryKey

Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.

View Source js/lib.dom.d.ts, line 4274

IDBObjectStore | IDBIndex

# source

Returns the IDBObjectStore or IDBIndex the cursor was opened from.

View Source js/lib.dom.d.ts, line 4279

IDBRequest.<IDBValidKey>

# update

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.

View Source js/lib.dom.d.ts, line 4306