micronaut-sql
micronaut-sql copied to clipboard
Pass all uknown parameters to jdbc url string
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.