Chapter 5
IndexedDB
Examples
Recipe 5.1
Creating, Reading, and Deleting Objects in a Database
Create a database that can create, read, and delete contact objects.
Recipe 5.2
Upgrading an Existing Database
Add a new object store to a database by incrementing its version number.
Recipe 5.3
Querying With Indexes
Use an index to query for employees by their department.
Recipe 5.4
Searching for String Values With Cursors
Search for string values by iterating over records with a cursor.
Recipe 5.5
Paginating a Large Data Set
Use a cursor to select a subset of objects.
Recipe 5.6
Promisifying the IndexedDB API
Wrap the IndexedDB API with Promises to avoid passing callbacks or global variables.