Skip to content

Commit 0e8e6f3

Browse files
committed
minor
1 parent fbac9e9 commit 0e8e6f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: 6-data-storage/03-indexeddb/article.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -799,12 +799,11 @@ IndexedDB can be thought of as a "localStorage on steroids". It's a simple key-v
799799

800800
The best manual is the specification, [the current one](https://w3c.github.io/IndexedDB) is 2.0, but few methods from [3.0](https://w3c.github.io/IndexedDB/) (it's not much different) are partially supported.
801801

802-
The usage can be described with a few phrases:
802+
The basic usage can be described with a few phrases:
803803

804804
1. Get a promise wrapper like [idb](https://github.com/jakearchibald/idb).
805805
2. Open a database: `idb.openDb(name, version, onupgradeneeded)`
806-
- Create object storages in indexes in `onupgradeneeded` handlers.
807-
- Update version if needed - either by comparing numbers or just checking what exists.
806+
- Create object storages and indexes in `onupgradeneeded` handler or perform version update if needed.
808807
3. For requests:
809808
- Create transaction `db.transaction('books')` (readwrite if needed).
810809
- Get the object store `transaction.objectStore('books')`.

0 commit comments

Comments
 (0)