Readonly dbReturns the transaction's connection.
Readonly durabilityReadonly errorIf the transaction was aborted, returns the error (a DOMException) providing the reason.
Readonly modeReturns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
Readonly objectReturns 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.
Optional options: boolean | AddEventListenerOptionsOptional options: boolean | AddEventListenerOptionsOptional options: boolean | EventListenerOptionsOptional options: boolean | EventListenerOptions
MDN Reference