Readonly
dbThe db
read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
Readonly
durabilityThe durability
read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
Readonly
errorThe IDBTransaction.error
property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
Readonly
modeThe mode
read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is readonly
.
Readonly
objectThe objectStoreNames
read-only property of the of IDBObjectStore objects.
The abort()
method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
The addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe commit()
method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The objectStore()
method of the added to the scope of this transaction.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptions
The
IDBTransaction
interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.MDN Reference