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.

IDBTransaction

< apis‎ | indexeddb
Jump to: navigation, search

IDBTransaction

This article is Ready to Use.

W3C Proposed Recommendation

Summary

Provides for the scope and type of access to a database, and represents a transaction on the database.


Properties

API Name Summary
db The database connection of which this transaction is a part.
error Null if the transaction is not finished, is finished and successfully committed, or was aborted with the abort() function. Returns the same DOMError as the request object which caused the transaction to be aborted due to a failed request, or a DOMError for the transaction failure not due to a failed request (such as QuotaExceededError or UnknownError).
mode The mode for isolating access to data in the object stores that are in the scope of the transaction. For possible values, see Return Value, below. The default value is readonly.
onabort The event handler for the onabort event.
oncomplete The event handler for the oncomplete event.


Methods

API Name Summary
objectStore Returns an object store that has already been added to the scope of this transaction.


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]