Readonly
keyThe keyPath
property of the IDBIndex interface returns the key path of the current index.
Readonly
multiThe multiEntry
read-only property of the behaves when the result of evaluating the index's key path yields an array.
The name
property of the IDBIndex interface contains a string which names the index.
Readonly
objectThe objectStore
property of the IDBIndex interface returns the object store referenced by the current index.
Readonly
uniqueThe unique
read-only property returns a boolean that states whether the index allows duplicate keys.
The count()
method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
Optional
query: IDBValidKey | IDBKeyRangeThe get()
method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if key
is set to an If a value is found, then a structured clone of it is created and set as the result
of the request object: this returns the record the key is associated with.
The getAll()
method of the IDBIndex interface retrieves all objects that are inside the index.
Optional
query: null | IDBValidKey | IDBKeyRangeOptional
count: numberThe getAllKeys()
method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the result
of the request object.
Optional
query: null | IDBValidKey | IDBKeyRangeOptional
count: numberThe getKey()
method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key
is set to an If a primary key is found, it is set as the result
of the request object.
The openCursor()
method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
Optional
query: null | IDBValidKey | IDBKeyRangeOptional
direction: IDBCursorDirectionThe openKeyCursor()
method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
Optional
query: null | IDBValidKey | IDBKeyRangeOptional
direction: IDBCursorDirection
IDBIndex
interface of the IndexedDB API provides asynchronous access to an index in a database.MDN Reference