Is your feature request related to a problem? Please describe.
In large projects, especially monorepos, there can be multiple databases, users, etc. While it is trivial to have multiple 'config' files that support each DB, it is not acceptable to commit these credentials into source. The library currently supports common PG ENV variables but this is limited to a single database, making it impossible to define multiple ENV
Describe the solution you'd like
Taking inspiration from the templatized {{dir}} {{name}} I plan to allow consumers to dynamically specify which ENV vars to use in the db config:
Is your feature request related to a problem? Please describe.
In large projects, especially monorepos, there can be multiple databases, users, etc. While it is trivial to have multiple 'config' files that support each DB, it is not acceptable to commit these credentials into source. The library currently supports common PG ENV variables but this is limited to a single database, making it impossible to define multiple ENV
Describe the solution you'd like
Taking inspiration from the templatized
{{dir}} {{name}}
I plan to allow consumers to dynamically specify which ENV vars to use in the db config:It should be simple enough to have the config parser pick up these variables rather than use the default PG onese
Additional context Somewhat related to https://github.com/adelsz/pgtyped/issues/504