Skip to content

Support extra parameters on datasource uri #627

Closed Answered by burningalchemist
tchatzig asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tchatzig, you can just add the parameters to the data_source_name directly:

 data_source_name: 'pg://test@127.0.0.1:5432/db?sslmode=disable&application_name=myapp'

I think it should work just fine. Make sure that the parameter is supported by the driver to be interpreted correctly.

Also if the driver supports any reserved environment variables, you can also add them to the container envs (e.g. PGAPPNAME=myapp).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #626 on October 29, 2024 15:06.