IDBTransaction

Properties

Link copied to clipboard

Returns the transaction's connection.

Link copied to clipboard

If the transaction was aborted, returns the error (a DOMException) providing the reason.

Link copied to clipboard

Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.

Link copied to clipboard

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

Functions

Link copied to clipboard
fun abort()

Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns an IDBObjectStore in the transaction's scope.