Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ReactiveIDBTransaction

Index

Constructors

constructor

Properties

Readonly db

Accessors

error

  • get error(): null | DOMException
  • If the transaction was aborted, returns the error (a DOMException) providing the reason.

    Returns null | DOMException

mode

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

    Returns IDBTransactionMode

objectStoreNames

  • get objectStoreNames(): DOMStringList
  • 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.

    Returns DOMStringList

Methods

abort

  • abort(): void
  • Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.

    Returns void

addEventListener

  • addEventListener<K>(type: K, listener: (ev: IDBTransactionEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void
  • Type parameters

    • K: "abort" | "error" | "complete"

    Parameters

    • type: K
    • listener: (ev: IDBTransactionEventMap[K]) => void
        • (ev: IDBTransactionEventMap[K]): void
        • Parameters

          • ev: IDBTransactionEventMap[K]

          Returns void

    • Optional options: boolean | AddEventListenerOptions

    Returns void

objectStore

objectStore$

removeEventListener

  • removeEventListener<K>(type: K, listener: (ev: IDBTransactionEventMap[K]) => void, options?: boolean | EventListenerOptions): void
  • Type parameters

    • K: "abort" | "error" | "complete"

    Parameters

    • type: K
    • listener: (ev: IDBTransactionEventMap[K]) => void
        • (ev: IDBTransactionEventMap[K]): void
        • Parameters

          • ev: IDBTransactionEventMap[K]

          Returns void

    • Optional options: boolean | EventListenerOptions

    Returns void

Generated using TypeDoc