This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

IDBRequest

Summary

Provides access to the result of a request on the database.

Properties

error
The error codes returned under certain conditions.
onerror
The event handler for the error event.
onsuccess
The event handler for the success event.
readyState
The state of the request. Every request starts in the pending state. The state changes to done when the request completes successfully or when an error occurs.
result
Returns the result of the request. If the the request failed and the result is not available, the DOMException InvalidStateError exception is thrown.
source
The source of the request, such as an Index or a ObjectStore. If no source exists (such as when calling indexedDB.open()), it returns null.
transaction
The transaction for the request. This property can be null for certain requests, such as for request returned from IDBFactory.open (You’re just connecting to a database, so there is no transaction to return).

Methods

No methods.

Events

No events.

Related specifications

W3C IndexedDB Specification
W3C Proposed Recommendation

Attributions