Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

IDBCursor

< apis‎ | indexeddb
Jump to: navigation, search

IDBCursor

This article is Ready to Use.

W3C Proposed Recommendation

Summary

Iterates over object stores and indices.


Properties

API Name Summary
direction Indicates the direction of travel within a cursor.
key The key value for the record currently displayed by the cursor.
primaryKey Returns the cursor's current effective key.
source On getting, returns the IDBObjectStore or IDBIndex that the cursor is iterating. This function never returns null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.


Methods

API Name Summary
continue Moves to the next record, or to the record specified by a key.
delete Returns an IDBRequest object and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position. Once the record is deleted, the cursor's value is set to null.
update Creates a structured clone of the value parameter.


Events

No events.




Related specifications

Specification Status Related Changes
W3C IndexedDB Specification W3C Proposed Recommendation

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]