File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
_generated-doc/main/infra Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -3702,7 +3702,7 @@ a| https://github.com/quarkusio/quarkus/blob/main/extensions/container-image/spi
37023702There 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|===
37083708h|Class Name
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments