Class: shaka.offline.indexeddb.DBConnection

Constructor

new DBConnection(connection)

Parameters:
Name Type Description
connection IDBDatabase A connection to an IndexedDB instance.
Source:

Members

(private) connection_ :IDBDatabase

Type:
  • IDBDatabase
Source:

Methods

destroy() → (non-null) {Promise}

Source:
Returns:
Type
Promise

(private) startOperation_(store, type) → (non-null) {shaka.offline.indexeddb.DBOperation}

Parameters:
Name Type Description
store string The name of the store that the operation should occur on.
type string The type of operation being performed on the store. This determines what commands may be performed. This can either be "readonly" or "readwrite".
Source:
Returns:
Type
shaka.offline.indexeddb.DBOperation

startReadOnlyOperation(store) → (non-null) {shaka.offline.indexeddb.DBOperation}

Parameters:
Name Type Description
store string The name of the store that the operation should occur on.
Source:
Returns:
Type
shaka.offline.indexeddb.DBOperation

startReadWriteOperation(store) → (non-null) {shaka.offline.indexeddb.DBOperation}

Parameters:
Name Type Description
store string The name of the store that the operation should occur on.
Source:
Returns:
Type
shaka.offline.indexeddb.DBOperation

(private) stopTracking_(operationnon-null)

Parameters:
Name Type Description
operation shaka.offline.indexeddb.DBOperation
Source: