Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for de-activating a datasource at runtime (application startup) #37265

Closed
carlesarnal opened this issue Nov 22, 2023 · 1 comment · Fixed by #38108
Closed

Support for de-activating a datasource at runtime (application startup) #37265

carlesarnal opened this issue Nov 22, 2023 · 1 comment · Fixed by #38108
Assignees
Labels
area/agroal area/persistence OBSOLETE, DO NOT USE kind/enhancement New feature or request
Milestone

Comments

@carlesarnal
Copy link
Contributor

Description

As discussed on Quarkus dev, I would like to have a way to disable datasources at runtime. Currently, this is not possible, I have tried defining different datasources for each flavor, but this still means that the datasource is created for the unused flavours, so I guess it still has some impact. I know that I can remove the unused datasource from the health checks, but I'm assuming (at least that's what I saw in my testing) that the beans are still created.

Implementation ideas

Essentially, what I'm asking for is something similar to https://quarkus.io/version/main/guides/hibernate-orm#quarkus-hibernate-orm_quarkus.hibernate-orm.active but for the datasource itself.

@carlesarnal carlesarnal added the kind/enhancement New feature or request label Nov 22, 2023
@yrodiere yrodiere self-assigned this Nov 22, 2023
@yrodiere yrodiere changed the title Support for changing the database kind at runtime (application startup) Support for de-activating a datasource at runtime (application startup) Nov 22, 2023
@geoand geoand added area/persistence OBSOLETE, DO NOT USE and removed triage/needs-triage labels Nov 29, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 29, 2023

/cc @DavideD (hibernate-reactive), @Sanne (hibernate-orm,hibernate-reactive), @gavinking (hibernate-reactive), @gsmet (hibernate-orm), @mswatosh (db2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agroal area/persistence OBSOLETE, DO NOT USE kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants