Skip to content

Commit

Permalink
Merge pull request #37028 from kdnakt/fix-typo-reactive-sql-clients
Browse files Browse the repository at this point in the history
Fix typos in reactive-sql-clients.adoc
  • Loading branch information
gsmet authored Nov 12, 2023
2 parents 2f2ce09 + 966ddba commit ef832ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/reactive-sql-clients.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ client.query("DROP TABLE IF EXISTS fruits").execute()
.await().indefinitely();
----

NOTE: Wondering why we need block until the latest query is completed?
NOTE: Wondering why we need to block until the latest query is completed?
This code is part of a `@PostConstruct` method and Quarkus invokes it synchronously.
As a consequence, returning prematurely could lead to serving requests while the database is not ready yet.

Expand Down Expand Up @@ -413,7 +413,7 @@ We will use https://jquery.com/[jQuery] to simplify interactions with the backen
</html>
----

In the Javascript code, we need a function to refresh the list of fruits when:
In the JavaScript code, we need a function to refresh the list of fruits when:

* the page is loaded, or
* a fruit is added, or
Expand Down Expand Up @@ -814,7 +814,7 @@ public class PipeliningExample {
PgPool client;
public Uni<String> favoriteFruitAndVegetable() {
// Explicitely acquire a connection
// Explicitly acquire a connection
return client.withConnection(conn -> {
Uni<String> favoriteFruit = conn.query("SELECT name FROM fruits WHERE preferred IS TRUE").execute()
.onItem().transform(rows -> rows.iterator().next().getString("name"));
Expand Down

0 comments on commit ef832ef

Please sign in to comment.