The IDBTransaction
interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes. All reading and writing of data are done within transactions. You actually use IDBDatabase
to start transactions and use IDBTransaction
to set the mode of the transaction and access an object store and make your request. You can also use it to abort transactions.
Inherits from: EventTarget
READ_ONLY
.onabort
event.oncomplete
event.error
event.setVersion()
method of IDBDatabase objects. Transactions of this mode cannot run concurrently with other transactions.