IDBIndexinterface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
IDBRequestobject on which subsequent events related to this operation are fired.
resultof the request object: this returns the record the key is associated with.
valueproperty of a cursor, because the object is created lazily. To use a feature like
getAll(), Gecko would have to create all the objects at once. If you were just interested in looking at each of the keys, for instance, it would be much more efficient to use a cursor. If you were trying to get an array of all the objects in an object store, though, you could use
resultof the request object: this returns the primary key of the record the key is associated with, not the whole record as
isAutoLocaleread-only property of the
IDBIndexinterface returns a
Booleanindicating whether the index had a
autospecified upon its creation (see
localeread-only property of the
IDBIndexinterface returns the locale of the index (for example
pl) if it had a
localevalue specified upon its creation (see
createIndex()'s optionalParameters.) Note that this property always returns the current locale being used in this index, in other words, it never returns
DOMStringspecifying a name for the index.