Skip to content

Commit 6d3de1f

Browse files
committed
Sync documentation of main branch
1 parent 67d608d commit 6d3de1f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

_generated-doc/main/infra/quarkus-all-build-items.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3702,7 +3702,7 @@ a| https://github.com/quarkusio/quarkus/blob/main/extensions/container-image/spi
37023702
There are cases where a single segment image (an image without group) is preferred. This build item is used to express this preferrence.
37033703
-- a|None
37043704
|===
3705-
== Datasource
3705+
== Datasource SPI
37063706
[.configuration-reference,cols=2*]
37073707
|===
37083708
h|Class Name

_versions/main/guides/hibernate-reactive.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,28 @@ public class SomeTest {
354354
----
355355
====
356356

357+
[[hr-named-datasource]]
358+
==== Named data sources
359+
360+
Hibernate Reactive supports having named data sources
361+
362+
[source,properties]
363+
.Example `{config-file}`
364+
----
365+
# datasource configuration
366+
quarkus.hibernate-orm.datasource = named-datasource
367+
quarkus.datasource."named-datasource".db-kind" = postgresql
368+
369+
# drop and create the database at startup (use `update` to only update the schema)
370+
%prod.quarkus.hibernate-orm.schema-management.strategy=drop-and-create
371+
%prod.quarkus.datasource."named-datasource".reactive" = true
372+
%prod.quarkus.datasource."named-datasource".username" = quarkus_test
373+
%prod.quarkus.datasource."named-datasource".password" = quarkus_test
374+
%prod.quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost/quarkus_test <1>
375+
----
376+
377+
When using a named data source, you need to set the `quarkus.hibernate-orm.datasource` property to the name of the data source.
378+
357379
[[hr-limitations]]
358380
== Limitations and other things you should know
359381

0 commit comments

Comments
 (0)