Results 41 - 60 of 125

IDBKeyRange

A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
API Database IDBKeyRange IndexedDB Interface Reference storage Storage

IDBKeyRange.bound()

The bounds can be open (that is, the bounds exclude the endpoint values) or closed (that is, the bounds include the endpoint values). By default, the bounds are closed.
API bound Database IDBKeyRange IndexedDB Method Reference storage Storage

IDBKeyRange.lower

The lower bound of the key range (can be any type.)
API Database IDBKeyRange IndexedDB lower Property Reference Storage storage

IDBKeyRange.lowerBound()

By default, it includes the lower endpoint value and is closed.
API Database IDBKeyRange IndexedDB lowerBound Method Reference storage Storage

IDBKeyRange.upper

The upper bound of the key range (can be any type.)
API Database IDBKeyRange IndexedDB Property Reference storage Storage upper

IDBKeyRange.upperBound()

By default, it includes the upper endpoint value and is closed.
API Database IDBKeyRange IndexedDB Method Reference storage Storage upperBound

IDBLocaleAwareKeyRange

The IDBLocaleAwareKeyRange interface of the IndexedDB API is a Firefox-specific version of IDBKeyRange — it functions in exactly the same fashion, and has the same properties and methods, but it is intended for use with IDBIndex objects when the original index had a locale value specified upon its creation (see createIndex()'s optionalParameters) — that is, it has locale aware sorting enabled.
API Database Experimental IDBKeyRange IndexedDB Interface Reference storage Storage

IDBObjectStore.add()

To determine if the add operation has completed successfully, listen for the transaction’s complete event in addition to the IDBObjectStore.add request’s success event, because the transaction may still fail after the success event fires. In other words, the success event is only triggered when the transaction has been successfully queued.
API Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.clear()

Clearing an object store consists of removing all records from the object store and removing all records in indexes that reference the object store.
API clear Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.count()

An IDBRequest object on which subsequent events related to this operation are fired.
API count data Database IDBObjectStore IndexedDB Method Reference

IDBObjectStore.createIndex()

Note that this method must be called only from a VersionChange transaction mode callback.
API createIndex Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.deleteIndex()

Note that this method must be called only from a VersionChange transaction mode callback. Note that this method synchronously modifies the IDBObjectStore.indexNames property.
API Database deleteIndex IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.get()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.getAll()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database getAll IDBObjectStore IndexedDB Method Reference storage Storage

IDBObjectStore.getAllKeys()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object.
API Database getAllKeys IDBObjectStore IndexedDB Method Reference storage Storage