Overview of IndexedDB

An IndexedDB database might be different than the type of database that you normally use. An IndexedDB database is an object-oriented database and not a relational database. Instead of storing data in tables, you store data in object stores. An IndexedDB database contains one or more object stores that contain a collection of JavaScript objects.

The IndexedDB API includes both asynchronous and synchronous methods. Currently, only the asynchronous methods are widely supported by browsers. If you want to open a database connection, add an object to an object store, or get a count of items in an object store, then you need to perform these operations asynchronously.

Creating or Connecting to an IndexedDB Database

You don’t ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.