From the course: JavaScript: Client-Side Data Storage
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Introduction to IndexedDB - JavaScript Tutorial
From the course: JavaScript: Client-Side Data Storage
Introduction to IndexedDB
- [Instructor] IndexedDB is literally a full database available in the client, but also is a bit more complex than web storage. It allows you to use complex objects, arrays, but also images and videos. It is very useful when you want to start maintaining structured data that are indexed with a key. Also, IndexedDB is object-oriented. And inside of its objects, uses a key/value pair approach similar to web storage. Operations done with IndexedDB are done asynchronously, so they don't impact the operations of the application. There are many terms used in IndexedDB that may be unfamiliar to you but we'll explain them as we explore how to use it and its methods. Also as of today, IndexedDB is supported across all browsers except Opera and anything below Explorer 11. A few limitations with IndexedDB. It can't synchronize with a server-based database. If you use it, be aware that your data will only reside there, and vice-versa if you have a back-end. So when you plan your database…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.