-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set quarkus.datasource.db-kind automatically K8S Service Binding is used
Relates to: #14327
- Loading branch information
Showing
3 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...ions/agroal/spi/src/main/java/io/quarkus/agroal/spi/DefaultDataSourceDbKindBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.quarkus.agroal.spi; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* A build item that represents the "quarkus.datasource.db-kind" value. | ||
* This is generated by specific extensions that are meant to take away the burden of | ||
* configuring anything datasource related from the user. | ||
*/ | ||
public final class DefaultDataSourceDbKindBuildItem extends MultiBuildItem { | ||
|
||
private final String dbKind; | ||
|
||
public DefaultDataSourceDbKindBuildItem(String dbKind) { | ||
this.dbKind = dbKind; | ||
} | ||
|
||
public String getDbKind() { | ||
return dbKind; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters