IDBCursorWithValue

sealed external class IDBCursorWithValue : IDBCursor(source)

This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.

MDN Reference

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
val source: Any

Returns the IDBObjectStore or IDBIndex the cursor was opened from.

Link copied to clipboard
val value: Any?

Returns the cursor's current value.

Functions

Link copied to clipboard
fun advance(count: Int)

Advances the cursor through the next count records in range.

Link copied to clipboard
fun continue(key: IDBValidKey = definedExternally)

Advances the cursor to the next record in range.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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