IDBIndex
interface 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.
Documentation IDBIndex by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
read onlymultiEntry:Bool
Methods
count(?key:Dynamic):Request
Returns an IDBRequest
object, and in a separate thread, returns the number of records within a key range.
Throws:
null | DOMError |
---|
get(key:Dynamic):Request
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 an IDBKeyRange
.
Throws:
null | DOMError |
---|
getAll(?key:Dynamic, ?limit:Int):Request
Returns an IDBRequest
object, in a separate thread, finds all matching values in the referenced object store that correspond to the given key or are in range, if key
is an IDBKeyRange
.
Throws:
null | DOMError |
---|
getAllKeys(?key:Dynamic, ?limit:Int):Request
Returns an IDBRequest
object, in a separate thread, finds all matching keys in the referenced object store that correspond to the given key or are in range, if key
is an IDBKeyRange
.
Throws:
null | DOMError |
---|
getKey(key:Dynamic):Request
Returns an IDBRequest
object, and, in a separate thread, finds either the given key or the primary key, if key
is an IDBKeyRange
.
Throws:
null | DOMError |
---|
openCursor(?range:Dynamic, direction:CursorDirection = NEXT):Request
Returns an IDBRequest
object, and, in a separate thread, creates a cursor over the specified key range.
Throws:
null | DOMError |
---|
openKeyCursor(?range:Dynamic, direction:CursorDirection = NEXT):Request
Returns an IDBRequest
object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
Throws:
null | DOMError |
---|