Interface

IDBRequest

IDBRequest

The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.

View Source js/lib.dom.d.ts, line 4616

Members

DOMException | null

# error

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.

View Source js/lib.dom.d.ts, line 4619

IDBRequestReadyState

# readyState

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

View Source js/lib.dom.d.ts, line 4624

T

# result

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

View Source js/lib.dom.d.ts, line 4629

IDBObjectStore | IDBIndex | IDBCursor

# source

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

View Source js/lib.dom.d.ts, line 4634

IDBTransaction | null

# transaction

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.

View Source js/lib.dom.d.ts, line 4639