Also inherits methods from its parents IDBRequest and EventTarget.

interface IDBOpenDBRequest {
    error: DOMException;
    onblocked: ((this, ev) => any);
    onerror: ((this, ev) => any);
    onsuccess: ((this, ev) => any);
    onupgradeneeded: ((this, ev) => any);
    readyState: IDBRequestReadyState;
    result: IDBDatabase;
    source: IDBCursor | IDBObjectStore | IDBIndex;
    transaction: IDBTransaction;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    dispatchEvent(event): boolean;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy

Properties

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: ((this, ev) => any)

Type declaration

onerror: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

onsuccess: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

onupgradeneeded: ((this, ev) => any)

Type declaration

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

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.

source: IDBCursor | IDBObjectStore | IDBIndex

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

transaction: 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

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • 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

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc