From b6654f24a7c97b943eb888617629f1fe3c8c7eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=A9=C5=99?= Date: Tue, 14 Nov 2023 10:28:34 +0100 Subject: [PATCH] Tiny tweaks based on QE feedback for Datasource guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Maléř --- docs/src/main/asciidoc/datasource.adoc | 7 ++++--- .../agroal/runtime/DataSourceJdbcRuntimeConfig.java | 7 +++++-- .../runtime/DataSourceReactiveRuntimeConfig.java | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/src/main/asciidoc/datasource.adoc b/docs/src/main/asciidoc/datasource.adoc index 5c427dc8c425e..bdc6a62dd1826 100644 --- a/docs/src/main/asciidoc/datasource.adoc +++ b/docs/src/main/asciidoc/datasource.adoc @@ -561,10 +561,11 @@ For more information, see the link:https://db.apache.org/derby/docs/10.8/devguid Example:: `jdbc:h2:tcp://localhost/~/test`, `jdbc:h2:mem:myDB` -H2 is an embedded database that can run as a server, based on a file, or run completely in memory. +H2 is a database that can run in embedded or server mode. +It can use a file storage or run entirely in memory. All of these options are available as listed above. -For more information, see the link:https://h2database.com/html/features.html?highlight=url&search=url#database_url[official documentation]. +For more information, see the link:https://h2database.com/html/features.html#database_url[official documentation]. ==== MariaDB @@ -592,7 +593,7 @@ hostDescription:: `[:] or address=(host=)[(port= leakDetectionInterval(); /** @@ -72,6 +74,7 @@ public interface DataSourceJdbcRuntimeConfig { /** * The max lifetime of a connection. */ + @ConfigDocDefault("By default, there is no restriction on the lifespan of a connection.") Optional maxLifetime(); /** @@ -92,7 +95,7 @@ public interface DataSourceJdbcRuntimeConfig { boolean flushOnClose(); /** - * When enabled Agroal will be able to produce a warning when a connection is returned + * When enabled, Agroal will be able to produce a warning when a connection is returned * to the pool without the application having closed all open statements. * This is unrelated with tracking of open connections. * Disable for peak performance, but only when there's high confidence that @@ -112,7 +115,7 @@ public interface DataSourceJdbcRuntimeConfig { Optional validationQuerySql(); /** - * Disable pooling to prevent reuse of Connections. Use this with when an external pool manages the life-cycle + * Disable pooling to prevent reuse of Connections. Use this when an external pool manages the life-cycle * of Connections. */ @WithDefault("true") diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java index 3099923f7efde..6d336c2e0875e 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java @@ -27,8 +27,8 @@ public interface DataSourceReactiveRuntimeConfig { * The datasource URLs. *

* If multiple values are set, this datasource will create a pool with a list of servers instead of a single server. - * The pool uses a round-robin load balancing when a connection is created to select different servers. - * Note: some driver may not support multiple values here. + * The pool uses round-robin load balancing for server selection during connection establishment. + * Note that certain drivers might not accommodate multiple values in this context. */ Optional> url();