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

Pass all uknown parameters to jdbc url string #810

Open
rlconst opened this issue Feb 18, 2023 · 0 comments
Open

Pass all uknown parameters to jdbc url string #810

rlconst opened this issue Feb 18, 2023 · 0 comments

Comments

@rlconst
Copy link

rlconst commented Feb 18, 2023

Feature description

Not sure if bug or feature

I'm using hikari and postgresql. You can pass additional params via ugly jdbc URL:

datasources:
  default:
    url: jdbc:postgresql://localhost:5432/db?-c%20my.var=SOMEVAL%20-c%20pg_trgm.similarity_threshold=0.1

I assumed that I can do instead

datasources:
  default:
    url: jdbc:postgresql://localhost:5432/db
    options: -c my.var=SOMEVAL -c pg_trgm.similarity_threshold=0.1

or even better

datasources:
  default:
    url: jdbc:postgresql://localhost:5432/db
    options:
     - -c my.var=SOMEVAL
     - -c pg_trgm.similarity_threshold=0.1

and all unknown params will be url encoded and attached to jdbc url but It doesn't work.

@rlconst rlconst changed the title Passing additional parameters to jdbc connection Pass all uknown parameters to jdbc url string Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant