binary draft
This commit is contained in:
parent
7f9a1e2c7a
commit
973f97cc09
38 changed files with 906 additions and 312 deletions
|
@ -7,7 +7,7 @@ libs:
|
|||
|
||||
IndexedDB is a built-in database, much more powerful than `localStorage`.
|
||||
|
||||
- Also key/value storage, but not only strings: value can be (almost) anything, multiple key types.
|
||||
- Key/value storage not only strings: value can be (almost) anything, multiple key types.
|
||||
- Supports transactions for reliability.
|
||||
- Supports key range queries, indexes.
|
||||
- Can store much more data than `localStorage`.
|
||||
|
@ -16,7 +16,7 @@ That power is usually excessive for traditional client-server apps. IndexedDB is
|
|||
|
||||
The native interface to IndexedDB, described in the specification <https://www.w3.org/TR/IndexedDB>, is event-based.
|
||||
|
||||
We can also use `async/await`-based interface with the help of a promise-based wrapper, like <https://github.com/jakearchibald/idb>. That's really convenient, but the wrapper is not perfect, it can't replace events for all cases, so we'll start with events, and then use the wrapper.
|
||||
We can also use `async/await` with the help of a promise-based wrapper, like <https://github.com/jakearchibald/idb>. That's pretty convenient, but the wrapper is not perfect, it can't replace events for all cases, so we'll start with events, and then use the wrapper.
|
||||
|
||||
## Open database
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue