IDBObjectStore
The IDBObjectStore
interface of the IndexedDB API represents an object store in a database.
Properties
Functions
The add()
method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
The clear()
method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
The count()
method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
The createIndex()
method of the field/column defining a new data point for each database record to contain.
The delete()
method of the and, in a separate thread, deletes the specified record or records.
The deleteIndex()
method of the the connected database, used during a version upgrade.
The get()
method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
The getAll()
method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
The getAllKeys()
method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
The getKey()
method of the and, in a separate thread, returns the key selected by the specified query.
The openCursor()
method of the and, in a separate thread, returns a new IDBCursorWithValue object.
The openKeyCursor()
method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
The put()
method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.