Skip to content

Use JDBI for resource_groups_global_properties#230

Merged
mosabua merged 1 commit intotrinodb:mainfrom
ebyhr:ebi/jdbi-resource-groups-global-properties
Feb 15, 2024
Merged

Use JDBI for resource_groups_global_properties#230
mosabua merged 1 commit intotrinodb:mainfrom
ebyhr:ebi/jdbi-resource-groups-global-properties

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented Feb 2, 2024

Relates to #229

@cla-bot cla-bot Bot added the cla-signed label Feb 2, 2024
@ebyhr ebyhr mentioned this pull request Feb 2, 2024
6 tasks
Copy link
Copy Markdown
Member

@Chaho12 Chaho12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow so neat. 👍

{
String jdbcUrl = configuration.getJdbcUrl();
if (routingGroupDatabase != null) {
jdbcUrl = jdbcUrl.substring(0, jdbcUrl.lastIndexOf('/') + 1) + routingGroupDatabase;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this work for MySQL, PostgreSQL and Oracle or are we assuming too much about the format of the jdbc url .. should we at least add some mention in the docs that we rely on the db name in the jdbc url?

Copy link
Copy Markdown
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets roll with this for now and see. Worst case we have to refactor.

@mosabua mosabua merged commit bc733a0 into trinodb:main Feb 15, 2024
@github-actions github-actions Bot added this to the 6 milestone Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants