Results 1 - 20 of 30

Data Store API

The Data Store API was created to allow multiple Firefox OS apps, with potentially different data structures and storage mechanisms, to create, maintain and share the same data objects efficiently between one another. Each app can then import the data into its own local IndexedDB to index according to their specific query needs. This is not necessary however, and you can just write directly to the Data Store API data store.
API Certified data Data Store Data Store API Firefox OS Interface Overview Reference Référence WebAPI

DataStoreChangeEvent

The DataStoreChangeEvent interface of the Data Store API represents the event related to a record changed in the data store, i.e. this is returned once a change is made and the change event is fired (see DataStore.onchange for the handler).
API Data Store Data Store API Database DataStoreChangeEvent Interface Non-standard Reference Référence Storage storage

DataStoreChangeEvent.id

The id read-only property of the DataStoreChangeEvent interface returns the identifier of the changed record in the data store. This must return null if the operation is cleared.
API Data Store Data Store API Database DataStoreChangeEvent id Property Reference Référence storage Storage

DataStoreChangeEvent.operation

The operation read-only property of the DataStoreChangeEvent interface returns the type of operation that represents the current change that has been made to the data store.
API Data Store Data Store API Database DataStoreChangeEvent operation Property Reference Référence Storage storage

DataStoreChangeEvent.owner

The owner read-only property of the DataStoreChangeEvent interface returns the manifest URL of the application that made the change to the data store.
API Data Store Data Store API Database DataStoreChangeEvent owner Property Reference Référence Storage storage

DataStoreChangeEvent.revisionId

The revisionId read-only property of the DataStoreChangeEvent interface returns the ID of the current revision of the data store, i.e. the current change that has been made to a data record.
API Data Store Data Store API Database DataStoreChangeEvent Property Reference revisionId Référence Storage storage

DataStoreCursor

The DataStoreCursor interface of the Data Store API represents a cursor that allows apps to iterate through a list of DataStoreTask objects representing the change history of the data store, for use when synchronizing the data.
API Data Store Data Store API Database DataStoreCursor Interface Non-standard Reference Référence Storage storage

DataStoreCursor.close()

The close() method of the DataStoreCursor interface makes a request to terminate the cursor.
API close Data Store Data Store API Database DataStoreCursor Method Reference Référence Storage storage

DataStoreCursor.next()

The next() method of the DataStoreCursor interface makes a request to retrieve information about the next operation that changes a record in the data store. Returns a promise of type DataStoreTask.
API Data Store Data Store API Database DataStoreCursor Method Next next Reference Référence storage Storage

DataStoreTask

The DataStoreTask interface of the Data Store API represents a record changed in the data store when a DataStoreCursor is used to iterate through the data store's change history.
API Data Store Data Store API Database DataStoreTask Interface Non-standard Reference Référence storage Storage

DataStoreTask.data

The data read-only property of the DataStoreChangeEvent interface returns the data stored in the changed record in the data store. Must return null if the operation is clear or done.
API data Data Store Data Store API Database DataStoreTask Property Reference Référence storage Storage

DataStoreTask.id

The id read-only property of the DataStoreTask interface returns the identifier of the changed record in the data store. This must return null if the operation is cleared or done.
API Data Store Data Store API Database DataStoreTask id Property Reference Référence storage Storage

DataStoreTask.operation

The operation read-only property of the DataStoreTask interface returns the type of operation that represents the current change that has been made to the data store.
API Data Store Data Store API Database DataStoreTask operation Property Reference Référence storage Storage

DataStoreTask.revisionId

The revisionId read-only property of the DataStoreTask interface returns the id of the current revision of the data store, i.e. the current change that has been made to a data record.
API Data Store Data Store API Database DataStoreTask Property Reference revisionId Référence storage Storage

Navigator.getDataStores()

The navigator.getDataStores() method provides access to a list of the Data Store API data stores available on the device.
API Data Store Data Store API Firefox OS Method Navigator Reference

DataStore.add()

The add() method of the DataStore interface adds a new record to the data store; if the record you are attempting to add already exists, it will throw an exception.
Add API B2G Data Store Data Store API Database DataStore Firefox OS Method Reference Référence Storage storage

DataStore.clear()

The clear() method of the DataStore interface deletes all records from the data store, leaving it empty.
API B2G clear Data Store Data Store API Database DataStore Firefox OS Method Reference Référence storage Storage

DataStore.get()

The get() method of the DataStore interface retrieves one or more objects from the current data store.
API B2G Data Store Data Store API Database DataStore Firefox OS Method Reference Référence Storage storage

DataStore.getLength()

The getLength() method of the DataStore interface returns the number of records stored in the current data store.
API B2G Data Store Data Store API Database DataStore Firefox OS Method Reference Référence storage Storage