If you want to see how many records are between keys 1000 and 2000 in an object store, you can write the following:
If you want to see how many records are between keys 1000 and 2000 in an object store, you can write the following:
MDN
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 a key range.
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 a key range.
MDN
Returns an IDBRequest object, and, in a separate thread, finds either the given key or the primary key, if key is a key range.
Returns an IDBRequest object, and, in a separate thread, finds either the given key or the primary key, if key is a key range.
MDN
The key path of this index.
The key path of this index. If null, this index is not auto-populated.
MDN
The name of the object store referenced by this index.
The name of the object store referenced by this index.
MDN
The method sets the position of the cursor to the appropriate record, based on the specified direction.
The method sets the position of the cursor to the appropriate record, based on the specified direction.
MDN
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
Returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
MDN
If true, this index does not allow duplicate values for a key.
If true, this index does not allow duplicate values for a key.
MDN
The 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.
You can retrieve records in an object store through their keys or by using an index (cursors provide a third way: see IDBCursor). An index lets you look up records in an object store using properties of the values in the object stores records.
The index is a persistent key-value storage where the value part of its records is the key part of a record in the referenced object store. The records in an index are automatically populated whenever records in the referenced object store are inserted, updated, or deleted. Each record in an index can point to only one record in its referenced object store, but several indexes can reference the same object store. When the object store changes, all indexes that refers to the object store are automatically updated.
MDN