This page is Ready to Use

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.

IDBOpenDBRequest

Summary

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

Inherits from IDBRequestIDBRequest

Properties

onUpgradeNeeded
The event handler for the upgrade needed event.
onblocked
The event handler for the blocked event. This event is triggered when the upgradeneeded should be triggered because of a version change but the database is still in use (ie not closed) somewhere, even after the versionchange event was sent.

Methods

No methods.

Events

No events.

Inherited from IDBRequest

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.

Notes

Remarks

The IDBOpenDBRequest object is returned by operations that affect database, such open and deleteDatabase.

Related specifications

W3C IndexedDB Specification
W3C Proposed Recommendation

Attributions