Skip to content

Commit

Permalink
Tiny tweaks based on QE feedback for Datasource guide
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maléř <mmaler@redhat.com>
  • Loading branch information
MichalMaler committed Nov 14, 2023
1 parent 830ef6e commit dfaaac9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/datasource.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ 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.

Check warning on line 564 in docs/src/main/asciidoc/datasource.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.TermsSuggestions] Depending on the context, consider using 'because' or 'while' rather than 'as'. Raw Output: {"message": "[Quarkus.TermsSuggestions] Depending on the context, consider using 'because' or 'while' rather than 'as'.", "location": {"path": "docs/src/main/asciidoc/datasource.adoc", "range": {"start": {"line": 564, "column": 36}}}, "severity": "INFO"}
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

Check warning on line 569 in docs/src/main/asciidoc/datasource.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Headings] Use sentence-style capitalization in 'MariaDB'. Raw Output: {"message": "[Quarkus.Headings] Use sentence-style capitalization in 'MariaDB'.", "location": {"path": "docs/src/main/asciidoc/datasource.adoc", "range": {"start": {"line": 569, "column": 1}}}, "severity": "INFO"}

Expand Down Expand Up @@ -592,7 +592,7 @@ hostDescription:: `<host>[:<portnumber>] or address=(host=<host>)[(port=<portnum

Example:: `jdbc:mysql://localhost:3306/test`

For more information, see the link:https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference.html[official documentation].
For more information, see the link:https://dev.mysql.com/doc/connector-j/en/[official documentation].

===== MySQL limitations

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public interface DataSourceJdbcRuntimeConfig {
/**
* The interval at which we check for connection leaks.
*/

@ConfigDocDefault("This feature is disabled by default.")
Optional<Duration> leakDetectionInterval();

/**
Expand All @@ -72,6 +74,7 @@ public interface DataSourceJdbcRuntimeConfig {
/**
* The max lifetime of a connection.
*/
@ConfigDocDefault("This feature is disabled by default.")
Optional<Duration> maxLifetime();

/**
Expand All @@ -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
Expand All @@ -112,7 +115,7 @@ public interface DataSourceJdbcRuntimeConfig {
Optional<String> 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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public interface DataSourceReactiveRuntimeConfig {
* The datasource URLs.
* <p>
* 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 a round-robin load balancing to select different servers when a connection is created.
* Note that some drivers might not support multiple values here.
*/
Optional<List<String>> url();

Expand Down

0 comments on commit dfaaac9

Please sign in to comment.