karenc / db-migrator

GNU Affero General Public License v3.0
4 stars 5 forks source link

Add db-config-ini-key to CLI options #41

Closed karenc closed 6 years ago

karenc commented 7 years ago

This allows us to use the database connection string in a config file that does not use "db-connection-string" as the key. For example in a config file like this:

[app:main]
postgresql.db-connection-string = dbname=travis user=travis host=localhost

dbmigrator will use this setting if --db-config-ini-key postgresql.db-connection-string is passed in.

Close #5

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.04%) to 96.219% when pulling 81e7e720d5eb736bbcc377637ba9cfd47600690c on db-config into 5091c38549aac7cfadf668917aac0a367b40ba35 on master.