Results 41 - 60 of 161

IDBIndex.openCursor()

The method sets the position of the cursor to the appropriate record, based on the specified direction.
API Database IDBIndex IndexedDB Method openCursor Reference storage Storage

IDBIndex.openKeyCursor()

The method sets the position of the cursor to the appropriate key, based on the specified direction.
API Database IDBIndex IndexedDB Method openKeyCursor Reference storage Storage

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