Constructor
new DBConnection(connection)
Parameters:
Name | Type | Description |
---|---|---|
connection |
IDBDatabase | A connection to an IndexedDB instance. |
Members
(private) connection_ :IDBDatabase
Type:
- IDBDatabase
(private, non-null) pending_ :Array.<shaka.offline.indexeddb.DBOperation>
Type:
Methods
destroy() → (non-null) {Promise}
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". |
Returns:
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. |
Returns:
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. |
Returns:
(private) stopTracking_(operationnon-null)
Parameters:
Name | Type | Description |
---|---|---|
operation |
shaka.offline.indexeddb.DBOperation |