Skip to content
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

Remove IDB output "example", preferring live example #34464

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove IDB output "example", preferring live example
  • Loading branch information
Josh-Cena committed Jun 27, 2024
commit fe02995918b88557a2bab750a94cfa89d7467d65
6 changes: 1 addition & 5 deletions files/en-us/web/api/idbcursor/direction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ Possible values are:

In this simple fragment we create a transaction, retrieve an object store, then use a
cursor to iterate through all the records in the object store. Within each iteration we
log the direction of the cursor, something like this:

```plain
prev
```
log the direction of the cursor.

> **Note:** we can't change the direction of travel of the cursor using
> the `direction` property, as it is read-only. We specify the direction of
Expand Down
3 changes: 1 addition & 2 deletions files/en-us/web/api/idbcursor/key/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ A value of any type.

In this simple fragment we create a transaction, retrieve an object store, then use a
cursor to iterate through all the records in the object store. Within each iteration we
log the key of the cursor to the console, something like this (its the album title in
each case, which is our key).
log the key of the cursor to the console.

The cursor does not require us to select the data based
on a key; we can just grab all of it. Also note that in each iteration of the loop,
Expand Down
7 changes: 1 addition & 6 deletions files/en-us/web/api/idbcursor/primarykey/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ A value of any data type.

In this simple fragment we create a transaction, retrieve an object store, then use a
cursor to iterate through all the records in the object store. Within each iteration we
log the primary key of the cursor to the console, something like this (its the album
title in each case, which is our primarykey):

```plain
Hemispheres
```
log the primary key of the cursor to the console.

The cursor does not require us to select the data based
on a key; we can just grab all of it. Also note that in each iteration of the loop,
Expand Down
6 changes: 1 addition & 5 deletions files/en-us/web/api/idbcursor/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ iterating over.
In this simple fragment we create a transaction, retrieve an object store, then use a
cursor to iterate through all the records in the object store. Within each iteration we
log the source of the cursor, which will log our {{domxref("IDBObjectStore")}} object to
the console, something like this:

```json
IDBObjectStore {autoIncrement: false, transaction: IDBTransaction, indexNames: DOMStringList, keyPath: "albumTitle", name: "rushAlbumList"…}
```
the console.

The cursor does not require us to select the data based
on a key; we can just grab all of it. Also note that in each iteration of the loop,
Expand Down