Results 21 - 30 of 30

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

DataStore.name

The name read-only property of the DataStore interface returns the name of the current data store.
API B2G Data Store Data Store API Database DataStore Firefox OS name Property Reference Référence storage Storage

DataStore.onchange

The onchange event handler of the DataStore interface fires when a change is made to the data store. Its main use is to synchronize different apps that are using the data store when a change is made. When fired, this event returns a DataStoreChangeEvent, which can be used to handle the change that was just made. Alternatively, when the event fires you could create a DataStoreCursor and iterate through all the records, if needed.
API B2G Data Store Data Store API Database DataStore Events events Firefox OS onchange Property Reference Référence Storage storage

DataStore.owner

The owner read-only property of the DataStore interface returns the name of the app that owns the current data store.
API B2G Data Store Data Store API Database DataStore Firefox OS owner Property Reference Référence storage Storage

DataStore.put()

The put() method of the DataStore interface updates an existing record in the data store.
API B2G Data Store Data Store API Database DataStore Firefox OS Method put Reference Référence Storage storage

DataStore.readOnly

The readOnly read-only property of the DataStore interface returns a boolean indicating whether the current data store is read-only.
API B2G Data Store Data Store API Database DataStore Firefox OS Property readOnly Reference Référence storage Storage

DataStore.remove()

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

DataStore.revisionId

The revisionId read-only property of the DataStore interface returns the current data store's current revision ID. This ID can be tracked, allowing you to synchronize apps using the data store to this point in its history.
API B2G Data Store Data Store API Database DataStore Firefox OS Property Reference revisionId Référence storage Storage

DataStore.sync()

The sync() method of the DataStore interface opens a cursor that allows you to step through any changes that have taken place in the data store going back to a particular revision ID, and run code in response to different types of change.
API B2G Data Store Data Store API Database DataStore Firefox OS Method Reference Référence Storage storage Sync sync