Opening a Database
Create databases and object stores.
What Is IndexedDB?
IndexedDB is a large-capacity, transactional database built into the browser. Unlike localStorage (small, string-only, synchronous), it stores structured objects, supports indexes, and works asynchronously.
Opening a Database
You open (or create) a database with indexedDB.open(name, version). It returns a request object whose events report success or failure.
const request = indexedDB.open('notes-db', 1);All lessons in this course
- Opening a Database
- Transactions and CRUD
- Indexes and Queries
- Versioning and Upgrades