Results 21 - 40 of 103

IDBDatabase.name

A DOMString containing the name of the connected database.
API Database IDBDatabase IndexedDB name Property Reference Storage storage

IDBDatabase.objectStoreNames

A DOMStringList containing a list of the names of the object stores currently in the connected database.
API Database IDBDatabase IndexedDB objectStoreNames Property Reference Storage storage

IDBDatabase.onabort

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases.
API Database IDBDatabase IndexedDB onabort Property Reference Storage storage

IDBDatabase.onclose

A function which is called when the close event is fired.
API Event Handler IDBDatabase IndexedDB onclose Property Reference

IDBDatabase.onerror

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases.
API Database IDBDatabase IndexedDB onerror Property Reference Référence storage Storage

IDBDatabase.onversionchange

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases, and an onversionchange function to notify when a database structure change has occurred.
API Database IDBDatabase IndexedDB onversionchange Property Reference Storage storage

IDBDatabase.version

An integer containing the version of the connected database.
API Database IDBDatabase IndexedDB Property Reference Storage storage version

IDBEnvironment.indexedDB

The indexedDB property of the IDBEnvironment interface provides a mechanism for applications to asynchronously access the capabilities of indexed databases.
API Database IDBEnvironment IndexedDB Property Reference Référence Storage

IDBFactory

In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
API HTTP IndexedDB Interface Offline offline Reference storage Storage

IDBFactory.cmp()

An integer that indicates the result of the comparison; the table below lists the possible values and their meanings:
API cmp Database IDBFactory IndexedDB Method Reference Storage storage

IDBFactory.deleteDatabase()

If the database is successfully deleted, then a success event is fired on the request object returned from this method, with its result set to undefined. If an error occurs while the database is being deleted, then an error event is fired on the request object that is returned from this method.
API Database deleteDatabase IDBFactory IndexedDB Method Reference storage Storage

IDBFactory.open()

If an error occurs while the database connection is being opened, then an error event is fired on the request object returned from this method.
API Database IDBFactory IndexedDB Method open Reference storage Storage

IDBIndex

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.
API Database IDBIndex IndexedDB Interface Reference Storage storage

IDBIndex.count()

A IDBRequest object on which subsequent events related to this operation are fired.
API count Database IDBIndex IndexedDB Method Reference storage Storage

IDBIndex.get()

If a value is successfully found, then a structured clone of it is created and set as the result of the request object: this returns the record the key is associated with.
API Database IDBIndex IndexedDB Method Reference Storage storage

IDBIndex.getAll()

There is a performance cost associated with looking at the value property of a cursor, because the object is created lazily. To use a feature like getAll(), Gecko would have to create all the objects at once. If you were just interested in looking at each of the keys, for instance, it would be much more efficient to use a cursor. If you were trying to get an array of all the objects in an object store, though, you could use getAll().
API Database IDBIndex IndexedDB Method Reference Référence storage Storage

IDBIndex.getKey()

If a key is successfully found it is set as the result of the request object: this returns the primary key of the record the key is associated with, not the whole record as IDBIndex.get does.
API Database IDBIndex IndexedDB Method Reference Storage storage

IDBIndex.isAutoLocale

The isAutoLocale read-only property of the IDBIndex interface returns a Boolean indicating whether the index had a locale value of auto specified upon its creation (see createIndex()'s optionalParameters.)
API Database Experimental IDBIndex IndexedDB isAutoLocale Property Reference Storage storage

IDBIndex.keyPath

Any data type that can be used as a key path.
API Database IDBIndex IndexedDB keyPath Property Reference storage Storage