IndexedDB
IndexedDB is another API supported by most modern web browsers for storing data on the client side.
IndexedDB provides a database-like API to store objects (that is, not mere strings like LocalStorage and SessionStorage). As with LocalStorage and SessionStorage, it lets you store, retrieve, update, and delete data. IndexedDB actually goes further and allows you to define primary keys and indexes, and use transactions to protect data integrity.
IndexedDB lets you store just about anything and provides a SQL-like syntax. It is similar to classical relational database management systems (RDBMSes) but works with JavaScript objects. You can actually define complex database schemas and even update/upgrade them when your application evolves. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access