Skip to content

Allow for multiple database type connections based on environmental variables.

Huihui, Jonathan requested to merge feature/multi-env-var into develop

Allow for multiple database type connections based on environmental variables.

env.py now has a check_multi_environment function that is placed in the mixins. This will modify the connection info based upon finding/not finding new environment variables or not.

Intended new additional environmental variables based on the mixin flavors, YOU CAN STILL STICK WITH DEFAULT:

Default -> PG/MS

DATABASE_HOST -> DATABASE_HOST_PG/DATABASE_HOST_MS

DATABASE_DB -> DATABASE_DB_PG/DATABASE_DB_MS

DATABASE_PORT -> DATABASE_PORT_PG/DATABASE_PORT_MS

DATABASE_USER -> DATABASE_USER_PG/DATABASE_USER_MS

DATABASE_PW -> DATABASE_PW_PG/DATABASE_PW_MS

Merge request reports