Class: shaka.offline.indexeddb.DBOperation

Constructor

new DBOperation(transaction, storeName)

Parameters:
Name Type Description
transaction IDBTransaction
storeName string
Source:

Members

store_ :IDBObjectStore

Type:
  • IDBObjectStore
Source:

transaction_ :IDBTransaction

Type:
  • IDBTransaction
Source:

Methods

abort() → {Promise}

Source:
Returns:
Type
Promise

forEachEntry(callback) → {Promise}

Calls the given callback for each entry in the database.
Parameters:
Name Type Description
callback function(!IDBKeyType, T, !IDBCursorWithValue=): (Promise|undefined)
Source:
Returns:
Type
Promise

promise() → {Promise}

Get the promise that wraps the transaction. This promise will resolve when all requests on the object store complete successfully and the transaction completes. If any request fails or the operation is aborted, the promise will be rejected.
Source:
Returns:
Type
Promise

store() → {IDBObjectStore}

Get the store that the operation can interact with. Requests can be made on the store. All requests made on the store will complete successfully before the operation's promise will resolve. If any request fails, the operation's promise will be rejected.
Source:
Returns:
Type
IDBObjectStore