Correct Structure for Multiple Databases in Martin #2337
|
Hi! I want to use Martin with two PostgreSQL connection. Is it possible? If yes, how to do this? With one connection string it works, but when I tried to add more connection strings to the config file, I got this error: |
Answered by
CommanderStorm
Nov 4, 2025
Replies: 1 comment 1 reply
|
Our docs could be better what "a list of PG configs" means. # Database configuration. This can also be a list of PG configs.
postgres:
- # Database connection string.
#
# You can use environment variables too, for example:
# connection_string: $DATABASE_URL
# connection_string: ${DATABASE_URL:-postgres://postgres@localhost/db}
connection_string: 'postgres://postgres@localhost:5432/db'
- # Database connection string.
#
# You can use environment variables too, for example:
# connection_string: $DATABASE_URL
# connection_string: ${DATABASE_URL:-postgres://postgres@localhost/db}
connection_string: 'postgres://postgres@localhost:5433/db'
I also noticed that this is not tested if you want to help out. |
1 reply
Answer selected by
CommanderStorm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our docs could be better what "a list of PG configs" means.
I also noti…