November 2011
Intermediate to advanced
384 pages
13h 23m
English
Before you can access an IndexedDB object store, you must first open its database context. An IndexedDB database serves two purposes: It houses a series of object stores under a common identification banner, and it serves to offer version control snapshots of the collection of object store schemas at different states.
For the sake of simplicity, and because the IndexedDB API version control is not yet fully supported by browsers, this chapter assumes that the database remains at version 1.0, and no version control is used. “1.0” is used when creating an IndexedDB database in the following section, “Create a New IndexedDB Object Store.”
var db, database = 'myDatabase'; var openDB = indexedDB.open(database); openDB.onsuccess ...
Read now
Unlock full access