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: |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
Our docs could be better what "a list of PG configs" means.
I also noti…