-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] multiple "configuration" support #137
Comments
Hi @julien. Thanks for the suggestion and the kind words. First of all, I need more details to get this done as quickly as possible. I'm thinking of adding multiple connection sections to the config file and adding a new flag that tells the cli which config is to be used. The default value is the first one (if there's more than one). Is this aligned with the expected behavior you're thinking of? |
Hey @danvergara, You can take your time do implement this, there are probably multiple ways to do it, I just thought I'd propose it.
To make that happen you probably need to add a If the configuration exists, that's what you use, if it doesn't you can show an error and exit. Let me know what you think when you can. |
Hi @danvergara no worries and thanks a lot for implementing this. |
Is your feature request related to a problem? Please describe.
No, not at all.
Describe the solution you'd like
I really like the
--config
flag and I was wondering if it could be possible to add support for multiple configurations. I think that most developers using this tool have a local database, maybe another local database only used for testing purposes, and then a database for each environment in which the deploy their code.Describe alternatives you've considered
The alternative is to add all your configurations in the
$HOME/.dblab.yaml
file and comment them, except the one you're going to use.Additional context
dblab is a nice tool so thanks a lot for making it.
The text was updated successfully, but these errors were encountered: