transaction .

    Returns a list of the names of in the transaction’s scope. For an this is all object stores in the database.

    transaction . [mode](#dom-idbtransaction-mode)

    Returns the the transaction was created with (["readonly"](#dom-idbtransactionmode-readonly) or ["readwrite"](#dom-idbtransactionmode-readwrite)), or ["versionchange"](#dom-idbtransactionmode-versionchange) for an upgrade transaction.

    transaction . [db](#dom-idbtransaction-db)

    Returns the transaction’s .

    transaction . [error](#dom-idbtransaction-error)

    If the transaction was aborted, returns the error (a [DOMException](https://www.w3.org/TR/WebIDL-1/#idl-DOMException)) providing the reason.

    The objectStoreNames attribute’s getter must run these steps:

    1. If this is an upgrade transaction, return a [DOMStringList](https://www.w3.org/TR/html52/single-page.html#domstringlist) associated with a of the names of the in this transaction‘s ‘s object store set.

    🚧 The [objectStoreNames](#dom-idbtransaction-objectstorenames) attribute is new in this edition. It is supported in Chrome 48, Firefox 44, and Safari 10.1. 🚧

    The contents of each list returned by this attribute does not change, but subsequent calls to this attribute during an can return lists with different contents as object stores are created and deleted.

    The mode attribute’s getter must return the of the transaction.

    The db attribute’s getter must return the connection of which this is a part.

    The error attribute’s getter must return this transaction‘s , or null if none.

    If this transaction was aborted due to a failed , this will be the same as the request‘s . If this transaction was aborted due to an uncaught exception in an event handler, the error will be a “[AbortError](https://www.w3.org/TR/WebIDL-1/#aborterror)“ . If the was aborted due to an error while committing, it will reflect the reason for the failure (e.g. “[QuotaExceededError](https://www.w3.org/TR/WebIDL-1/#quotaexceedederror)“, “[ConstraintError](https://www.w3.org/TR/WebIDL-1/#constrainterror)“, or “[UnknownError](https://www.w3.org/TR/WebIDL-1/#unknownerror)[DOMException](https://www.w3.org/TR/WebIDL-1/#idl-DOMException)).

    transaction . [objectStore](#dom-idbtransaction-objectstore)(name)

    Returns an [IDBObjectStore](#idbobjectstore) in the transaction‘s .

    transaction . [abort()](#dom-idbtransaction-abort)

    Aborts the transaction. All pending requests will fail with a “[AbortError](https://www.w3.org/TR/WebIDL-1/#aborterror)[DOMException](https://www.w3.org/TR/WebIDL-1/#idl-DOMException) and all changes made to the database will be reverted.

    1. If transaction has , throw an “[InvalidStateError](https://www.w3.org/TR/WebIDL-1/#invalidstateerror)[DOMException](https://www.w3.org/TR/WebIDL-1/#idl-DOMException).

    2. Return an associated with store and this transaction.

    Each call to this method on the same [IDBTransaction](#idbtransaction) instance with the same name returns the same instance.

    The returned [IDBObjectStore](#idbobjectstore) instance is specific to this [IDBTransaction](#idbtransaction). If this method is called on a different [IDBTransaction](#idbtransaction), a different [IDBObjectStore](#idbobjectstore) instance is returned.

    The abort() method, when invoked, must run these steps:

    1. Unset the ‘s active flag and run the steps to with null as error.

    The onabort attribute is the event handler for the abort event.

    The oncomplete attribute is the event handler for the complete event.

    To determine if a transaction has completed successfully, listen to the ‘s complete event rather than the success event of a particular request, because the can still fail after the event fires.