IDBObjectStore
The IDBObjectStore
interface of the IndexedDB API represents an object store in a database.
Properties
The autoIncrement
read-only property of the IDBObjectStore interface returns the value of the auto increment flag for this object store.
The indexNames
read-only property of the IDBObjectStore interface returns a list of the names of indexes on objects in this object store.
The transaction
read-only property of the IDBObjectStore interface returns the transaction object to which this object store belongs.
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 IDBKeyRange.
The createIndex()
method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.
The delete()
method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, deletes the specified record or records.
The deleteIndex()
method of the IDBObjectStore interface destroys the index with the specified name in 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 IDBObjectStore interface returns an IDBRequest object 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 IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
The openCursor()
method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns a new IDBCursorWithValue object.
The openKeyCursor()
method of the IDBObjectStore interface returns an IDBRequest object 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.