Options
All
  • Public
  • Public/Protected
  • All
Menu

Also inherits methods from its parents IDBRequest and EventTarget.

Hierarchy

Index

Properties

error: null | internal.DOMException

When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.

onblocked: null | ((this: internal.IDBOpenDBRequest, ev: internal.IDBVersionChangeEvent) => any)
onerror: null | ((this: internal.IDBRequest<internal.IDBDatabase>, ev: Event) => any)
onsuccess: null | ((this: internal.IDBRequest<internal.IDBDatabase>, ev: Event) => any)
onupgradeneeded: null | ((this: internal.IDBOpenDBRequest, ev: internal.IDBVersionChangeEvent) => any)

Returns "pending" until a request is complete, then returns "done".

When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.

Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.

transaction: null | internal.IDBTransaction

Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • removeEventListener<K>(type: K, listener: ((this: internal.IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Generated using TypeDoc