IDBIndex interface of the IndexedDB API provides asynchronous to an index in a database. An index is a kind of object store looking up records in another object store, called the referenced store. You use this interface to retrieve data.
IDBIndex interface of the IndexedDB API provides asynchronous to an index in a database. An index is a kind of object store looking up records in another object store, called the referenced store. You use this interface to retrieve data.
(count this & args)
Method.
A web.storage.IDBRequest
object on which subsequent events
to this operation are fired.
var request = myIndex.count(); var request = myIndex.count(key);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count
Method. A `web.storage.IDBRequest` object on which subsequent events to this operation are fired. `var request = myIndex.count(); var request = myIndex.count(key);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count`
(get this key)
Method.
If a value is found, then a structured clone of it is created set as the result of the request object: this returns the record key is associated with.
var request = myIndex.get(key);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get
Method. If a value is found, then a structured clone of it is created set as the result of the request object: this returns the record key is associated with. `var request = myIndex.get(key);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get`
(get-all this & args)
Method.
There is a performance cost associated with looking at the value of a cursor, because the object is created lazily. To use a feature getAll(), the browser has to create all the objects at once. you are just interested in looking at each of the keys, for instance, is more efficient to use a cursor. If you are trying to get an of all the objects in an object store, though, you should use
var getAllKeysRequest = IDBIndex.getAll(); var getAllKeysRequest = IDBIndex.getAll(query); var getAllKeysRequest = IDBIndex.getAll(query, count);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll
Method. There is a performance cost associated with looking at the value of a cursor, because the object is created lazily. To use a feature getAll(), the browser has to create all the objects at once. you are just interested in looking at each of the keys, for instance, is more efficient to use a cursor. If you are trying to get an of all the objects in an object store, though, you should use `var getAllKeysRequest = IDBIndex.getAll(); var getAllKeysRequest = IDBIndex.getAll(query); var getAllKeysRequest = IDBIndex.getAll(query, count);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll`
(get-all-keys this & args)
Method.
An web.storage.IDBRequest
object on which subsequent events
to this operation are fired.
var allKeysRequest = IDBIndex.getAllKeys(); var allKeysRequest = IDBIndex.getAllKeys(query); var allKeysRequest = IDBIndex.getAllKeys(query, count);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys
Method. An `web.storage.IDBRequest` object on which subsequent events to this operation are fired. `var allKeysRequest = IDBIndex.getAllKeys(); var allKeysRequest = IDBIndex.getAllKeys(query); var allKeysRequest = IDBIndex.getAllKeys(query, count);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys`
(get-key this key)
Method.
If a key is found it is set as the result of the request object:
returns the primary key of the record the key is associated with,
the whole record as IDBIndex.get
does.
var request = myIndex.getKey(key);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey
Method. If a key is found it is set as the result of the request object: returns the primary key of the record the key is associated with, the whole record as `IDBIndex.get` does. `var request = myIndex.getKey(key);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey`
(is-auto-locale this)
Property.
[Read Only] [Experimental]
The isAutoLocale read-only property of the web.storage.IDBIndex
returns a js.Boolean
indicating whether the index had a locale
of auto specified upon its creation (see createIndex()'s optionalParameters.)
var myIndex = objectStore.index('index'); console.log(myIndex.isAutoLocale);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale
Property. [Read Only] [Experimental] The isAutoLocale read-only property of the `web.storage.IDBIndex` returns a `js.Boolean` indicating whether the index had a locale of auto specified upon its creation (see createIndex()'s optionalParameters.) `var myIndex = objectStore.index('index'); console.log(myIndex.isAutoLocale);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale`
(key-path this)
Property.
[Read Only]
Any data type that can be used as a key path.
var myKeyPath = myIndex.keyPath;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath
Property. [Read Only] Any data type that can be used as a key path. `var myKeyPath = myIndex.keyPath;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath`
(locale this)
Property.
[Read Only] [Experimental]
The locale read-only property of the web.storage.IDBIndex
interface
the locale of the index (for example en-US, or pl) if it had
locale value specified upon its creation (see createIndex()'s
Note that this property always returns the current locale being
in this index, in other words, it never returns "auto".
var myIndex = objectStore.index('index'); console.log(myIndex.locale);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/locale
Property. [Read Only] [Experimental] The locale read-only property of the `web.storage.IDBIndex` interface the locale of the index (for example en-US, or pl) if it had locale value specified upon its creation (see createIndex()'s Note that this property always returns the current locale being in this index, in other words, it never returns \"auto\". `var myIndex = objectStore.index('index'); console.log(myIndex.locale);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/locale`
(multi-entry this)
Property.
[Read Only]
A js.Boolean
:
var isMultiEntry = myIndex.multiEntry;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry
Property. [Read Only] A `js.Boolean`: `var isMultiEntry = myIndex.multiEntry;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry`
(name this)
Property.
A web.dom.DOMString
specifying a name for the index.
var indexName = IDBIndex.name; IDBIndex.name = indexName;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name
Property. A `web.dom.DOMString` specifying a name for the index. `var indexName = IDBIndex.name; IDBIndex.name = indexName;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name`
(object-store this)
Property.
[Read Only]
An web.idb.IDBObjectStore
.
var myIDBObjectStore = myIndex.objectStore;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore
Property. [Read Only] An `web.idb.IDBObjectStore`. `var myIDBObjectStore = myIndex.objectStore;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore`
(open-cursor this & args)
Method.
The method sets the position of the cursor to the appropriate based on the specified direction.
var request = myIndex.openCursor(); var request = myIndex.openCursor(range); var request = myIndex.openCursor(range, direction);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor
Method. The method sets the position of the cursor to the appropriate based on the specified direction. `var request = myIndex.openCursor(); var request = myIndex.openCursor(range); var request = myIndex.openCursor(range, direction);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor`
(open-key-cursor this & args)
Method.
The method sets the position of the cursor to the appropriate based on the specified direction.
var request = myIndex.openKeyCursor(); var request = myIndex.openKeyCursor(range); var request = myIndex.openKeyCursor(range, direction);
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor
Method. The method sets the position of the cursor to the appropriate based on the specified direction. `var request = myIndex.openKeyCursor(); var request = myIndex.openKeyCursor(range); var request = myIndex.openKeyCursor(range, direction);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor`
(set-name! this val)
Property.
A web.dom.DOMString
specifying a name for the index.
var indexName = IDBIndex.name; IDBIndex.name = indexName;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name
Property. A `web.dom.DOMString` specifying a name for the index. `var indexName = IDBIndex.name; IDBIndex.name = indexName;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name`
(unique this)
Property.
[Read Only]
A js.Boolean
:
var isUnique = IDBIndex.unique;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique
Property. [Read Only] A `js.Boolean`: `var isUnique = IDBIndex.unique;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close