Skip to content

Commit

Permalink
Merge pull request #27699 from quaff
Browse files Browse the repository at this point in the history
* pr/27699:
  Fix typo

Closes gh-27699
  • Loading branch information
snicoll committed Nov 22, 2021
2 parents dfd5374 + b4b3c2e commit 3290495
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docs/asciidoc/data-access.adoc
Expand Up @@ -6788,20 +6788,20 @@ You can take control over result mapping by supplying a `Function<Row, T>` that
called for each `Row` so it can can return arbitrary values (singular values,
collections and maps, and objects).

The following example extracts the `id` column and emits its value:
The following example extracts the `name` column and emits its value:

[source,java,indent=0,subs="verbatim,quotes",role="primary"]
.Java
----
Flux<String> names = client.sql("SELECT name FROM person")
.map(row -> row.get("id", String.class))
.map(row -> row.get("name", String.class))
.all();
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
.Kotlin
----
val names = client.sql("SELECT name FROM person")
.map{ row: Row -> row.get("id", String.class) }
.map{ row: Row -> row.get("name", String.class) }
.flow()
----

Expand Down

0 comments on commit 3290495

Please sign in to comment.