Class: shaka.offline.indexeddb.DBConnection

Constructor

new DBConnection(connection)

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

Members

connection_ :IDBDatabase

Type:
  • IDBDatabase
Source:

Methods

destroy() → {Promise}

Source:
Returns:
Type
Promise

startOperation_(store, type) → {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) → {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) → {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

stopTracking_(operationnon-null)

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

  翻译: