Skip to content

Sync with upstream @ e01998ba #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 36 commits into from
Mar 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bda37e2
Update article.md
Zearin Jan 15, 2021
18417c3
Update article.md
Zearin Jan 16, 2021
8806d5b
Update article.md
Zearin Jan 16, 2021
93b1051
unify content with cosmetic changes
Jan 25, 2021
ad01279
restore try-catch-flow.svg
Jan 25, 2021
b93be73
Update article.md
Zearin Jan 25, 2021
d78ce9c
Update article.md
Zearin Jan 25, 2021
4711ee4
Update article.md
Zearin Jan 25, 2021
7be7b28
Considering Promise.any there are 6 static methods
mikitachyzhyk Feb 2, 2021
f014534
Remove comma after `e.g.` based on feedback
Zearin Feb 2, 2021
0d52720
needed 4 translated repos
joaquinelio Feb 4, 2021
c8a52a1
Add comments to article.md
knoxj1 Feb 4, 2021
ff9e2e2
Merge pull request #1 from knoxj1/knoxj1-patch-1
knoxj1 Feb 4, 2021
dd9833c
Update 2-ui/4-forms-controls/1-form-elements/article.md
knoxj1 Feb 10, 2021
879554f
Update article.md - fix syntax
eucalyptus-viminalis Feb 24, 2021
f6ae0b5
minor fixes
iliakan Feb 28, 2021
f452810
typo
joaquinelio Mar 2, 2021
fdcf507
Fix little formatting typo in 1.2.13 (loops)
T1mL3arn Mar 5, 2021
d9d1023
spread operator vs spread syntax
lumosmind Mar 8, 2021
e6bf25f
Merge pull request #2495 from joaquinelio/info
iliakan Mar 12, 2021
20fd4f8
Merge pull request #2496 from knoxj1/master
iliakan Mar 12, 2021
f267fad
Merge pull request #2504 from fibretothepremises/patch-2
iliakan Mar 12, 2021
7ec4f28
Merge pull request #2507 from joaquinelio/patch-1
iliakan Mar 12, 2021
e0f41ea
Merge pull request #2509 from T1mL3arn/patch-1
iliakan Mar 12, 2021
bf66ad6
Merge pull request #2511 from lumosmind/patch-6
iliakan Mar 12, 2021
a89de35
closes #2498
iliakan Mar 13, 2021
91aed38
minor fixes
iliakan Mar 13, 2021
78f7678
closes #2494
iliakan Mar 13, 2021
e4c769d
Merge pull request #2489 from mikitachyzhyk/patch-1
iliakan Mar 13, 2021
c3a9bbd
minor fixes
iliakan Mar 13, 2021
175574e
Merge pull request #2440 from Zearin/patch-1
iliakan Mar 13, 2021
8bc505a
closes #2459
iliakan Mar 13, 2021
7ad529e
Merge pull request #2464 from VibingCreator/master
iliakan Mar 13, 2021
bbf60dd
minor fixes
iliakan Mar 13, 2021
e01998b
minor fixes
iliakan Mar 14, 2021
035d873
merging all conflicts
iliakan Mar 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fixes
  • Loading branch information
iliakan committed Mar 13, 2021
commit 91aed383d9588edd3b9d778ac3ebea619ccc43e6
8 changes: 4 additions & 4 deletions 6-data-storage/03-indexeddb/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,9 @@ There are two main types of search in an object store:
1. By a key or a key range. That is: by `book.id` in our "books" storage.
2. By another object field, e.g. `book.price`.

First let's deal with the keys and key ranges `(1)`.
First let's deal with the first type of search: by a key.

Methods that involve searching support either exact keys or so-called "range queries" -- [IDBKeyRange](https://www.w3.org/TR/IndexedDB/#keyrange) objects that specify a "key range".
Searching methods support both exact keys and so-called "ranges" -- [IDBKeyRange](https://www.w3.org/TR/IndexedDB/#keyrange) objects that specify an acceptable "key range".

Ranges are created using following calls:

Expand All @@ -486,7 +486,7 @@ Ranges are created using following calls:
- `IDBKeyRange.bound(lower, upper, [lowerOpen], [upperOpen])` means: between `lower` and `upper`. If the open flags is true, the corresponding key is not included in the range.
- `IDBKeyRange.only(key)` -- a range that consists of only one `key`, rarely used.

All searching methods accept a `query` argument that can be either an exact key or a key range:
Searching methods accept a `query` argument that can be either an exact key or a key range:

- `store.get(query)` -- search for the first value by a key or a range.
- `store.getAll([query], [count])` -- search for all values, limit by `count` if given.
Expand All @@ -511,7 +511,7 @@ books.getAll(IDBKeyRange.upperBound('html', true))
// get all books
books.getAll()

// get all keys: id > 'js'
// get all keys, where id > 'js'
books.getAllKeys(IDBKeyRange.lowerBound('js', true))
```

Expand Down