Skip to content

Commit

Permalink
Remove IDB output "example", preferring live example (#34464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jun 28, 2024
1 parent 63ffc2d commit ac5b788
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
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

0 comments on commit ac5b788

Please sign in to comment.