Skip to content
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 request: generate config file #14

Open
ndastur opened this issue Feb 23, 2020 · 4 comments
Open

Feature request: generate config file #14

ndastur opened this issue Feb 23, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ndastur
Copy link

ndastur commented Feb 23, 2020

It would be really great if there was a command line option to generate a dummy config file. Or better still take 2 connection strings and populate the config file too

@michaelsogos
Copy link
Owner

Hi @ndastur

Nice idea, can you explain it better?

  1. A command line to generate an CONFIG FILE for EXAMPLE? You can copy and paste the one you can find in documentation. However i can create it "on the fly".
  2. Take a connection string? Do you think to accept command paramenter in order to make a config file with the connection string passed as parameter?

Because the config file has many options is very difficult to make one that fit your needs, if you like i can work on an "interactive" config generator from command line.

@michaelsogos michaelsogos self-assigned this Feb 23, 2020
@michaelsogos michaelsogos added the enhancement New feature or request label Feb 23, 2020
@ndastur
Copy link
Author

ndastur commented Feb 23, 2020

Thanks @michaelsogos.

Just a quick note while I'm here the config file on the documentation site has an error. I think schemaNamespace is now schemaCompare

I guess I was thinking of a template like output. But an interactive config generator would be brilliant. I'm sure that would work better than a template file. Especially as JSON doesn't have support for comments and so all those // comments need to be deleted by hand from any output.

With regards to connection strings. Is there a reason the config file couldn't have connection strings rather than the broken down component parts?

@michaelsogos
Copy link
Owner

Hi @ndastur ,

Thanks for doc suggestion, you are right!

About your request, we plan it for version 2.x of this tool because we are refactoring the code in order to converge with pg-diff-api.

@michaelsogos michaelsogos added this to the Milestone 2.0 milestone May 10, 2020
@andistern
Copy link

andistern commented May 6, 2022

thanks @ndastur for mentioning to remove the double slashes . Also had to remove the comma (,) between closing bracket (] )and closing brace (}) in two places of the 2.0 Example.
still getting
type "regrole" does not exist
and not having any clue ;-((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

3 participants