Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDBOpenDBRequest

Also inherits methods from its parents IDBRequest and EventTarget.

Hierarchy

Index

Properties

IDBRequest

IDBRequest: { constructor: any; prototype: IDBRequest }

Type declaration

Readonly error

error: DOMException | null

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

onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null

onerror

onerror: ((this: IDBRequest<IDBDatabase>, ev: Event) => any) | null

onsuccess

onsuccess: ((this: IDBRequest<IDBDatabase>, ev: Event) => any) | null

onupgradeneeded

onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null

Readonly readyState

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

Readonly result

result: IDBDatabase

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

Readonly source

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

Readonly transaction

transaction: IDBTransaction | null

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

dispatchEvent

  • 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

    Returns boolean

removeEventListener

Generated using TypeDoc