INDEXEDDB
The Indexed Database API, IndexedDB for short, is a structured data store in the browser. IndexedDB came about as an alternative to the now-deprecated Web SQL Database API. The idea behind IndexedDB was to create an API that easily allowed the storing and retrieval of JavaScript objects while still allowing querying and searching.
IndexedDB is designed to be almost completely asynchronous. As a result, most operations are performed as requests that will execute later and produce either a successful result or an error. Nearly every IndexedDB operation requires you to attach onerror
and onsuccess
event handlers to determine the outcome.
As of 2017, the latest releases of most major vendor browsers (Chrome, Firefox, Opera, Safari) fully support IndexedDB. Internet Explorer 10/11 and Edge browsers partially support IndexedDB.
Databases
IndexedDB is a database similar to databases you've probably used before, such as MySQL or Web SQL Database. The big difference is that IndexedDB...