liveBook · Manning

IndexedDB

IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases.

How 2 Manning books explain it

HTML5 in Action

IndexedDB is a browser API for storing and querying structured data in a client-side database.

How it is used
Uses IndexedDB to manage searchable task records on the client for an offline mobile application.
How deep it goes
Walks through feature detection, database connections, object stores, key-range queries, and task operations.
Examples
Builds a mobile task list with search, task editing and deletion, and separate display settings.
What you can do after
Apply it via the IndexedDB API to connect to a database and manage and query task records.

Read how HTML5 in Action explains IndexedDB →

Vanilla Web

IndexedDB is a browser database API for storing and querying structured data, including data larger than typical web-storage values.

How it is used
Stores structured application data such as drafts, offline records, sync queues, and cached domain objects.
How deep it goes
Defines keys, stores, indexes, transactions, and versioned upgrades, then demonstrates database operations through native APIs and idb.
Examples
Uses saved drafts with a keyPath and demonstrates adding, updating, retrieving, counting, and deleting records.
What you can do after
Build it from scratch with native database opening and upgrade logic, or apply it through the idb Promise wrapper.

Read how Vanilla Web explains IndexedDB →

Also covered in

What to know first

Related concepts

Questions about IndexedDB

What is IndexedDB?

IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases.

Which Manning books explain IndexedDB?

HTML5 in Action and Vanilla Web.

What should I know before learning IndexedDB?

Manning books that teach IndexedDB usually introduce cookie, HTTP and JavaScript first.

What is the difference between IndexedDB and websql?

IndexedDB is a browser API for asynchronously storing and querying structured data in transactional, indexed client-side databases. Web SQL is a discontinued web standard that defined a browser API for storing and querying relational client-side databases with SQL.

What are the parts of IndexedDB?

IndexedDB includes object store.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.