Results 61 - 80 of 161

IDBObjectStore.createIndex()

Note that this method must be called only from a VersionChange transaction mode callback.
API createIndex Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.deleteIndex()

Note that this method must be called only from a VersionChange transaction mode callback. Note that this method synchronously modifies the IDBObjectStore.indexNames property.
API Database deleteIndex IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.get()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.getAll()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database getAll IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.getAllKeys()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database getAllKeys IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.keyPath

If this property is null, the application must provide a key for each modification operation.
API Database IDBObjectStore IndexedDB keyPath Property Reference Storage storage

IDBObjectStore.openCursor()

To determine if the add operation has completed successfully, listen for the results’s success event.
API Database IDBObjectStore IndexedDB Method openCursor Reference storage Storage

IDBObjectStore.openKeyCursor()

To determine if the add operation has completed successfully, listen for the results’s success event.
API Database IDBObjectStore Method openKeyCursor Reference Référence storage Storage

IDBObjectStore.put()

If the record is successfully stored, then a success event is fired on the returned request object with the result set to the key for the stored record, and the transaction set to the transaction in which this object store is opened.
API Database IDBObjectStore IndexedDB Method put Reference storage Storage

IDBOpenDBRequest.onblocked

The IDBOpenDBRequest.onblocked event handler is the event handler for the blocked event. This event is triggered when the upgradeneeded should be triggered because of a version change but the database is still in use (that is, not closed) somewhere, even after the versionchange event was sent.
API Database IDBOpenDBRequest IndexedDB onblocked Property Reference Storage storage

IDBOpenDBRequest.onupgradeneeded

In the following example you can see the onupgradeneeded handler being used to update the database structure if a database with a higher version number is loaded. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBOpenDBRequest IndexedDB onupgradeneeded Property Reference Storage storage

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.
API Database IDBRequest IndexedDB Interface Reference storage Storage

IDBRequest.error

A DOMError containing the relevant error. In Chrome 48 and later this property returns a DOMException because DOMError has been removed from the DOM standard. The following error codes are returned under certain conditions:
API Database Error IDBRequest IndexedDB Property Reference Storage storage

IDBRequest.onerror

The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store. Also included at the bottom is an onerror function that reports what the error was if the request fails. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBRequest IndexedDB onerror Property Reference Storage storage

IDBRequest.onsuccess

The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBRequest IndexedDB onsuccess Property Reference Storage storage