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

Fix typo #27699

Closed
wants to merge 1 commit into from
Closed

Fix typo #27699

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/docs/asciidoc/data-access.adoc
Original file line number Diff line number Diff line change
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