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

Add effective transformation output #14

Closed
bomoko opened this issue Jun 20, 2018 · 1 comment · Fixed by #15
Closed

Add effective transformation output #14

bomoko opened this issue Jun 20, 2018 · 1 comment · Fixed by #15

Comments

@bomoko
Copy link
Contributor

bomoko commented Jun 20, 2018

It would be useful to output the effective output what sanitization details are being read from the configuration files - that is, to display the transformation mappings that will be used if the dump was run.

Since we read configuration information from several places, this would be useful in terms of displaying exactly what we can expect on run.

@bomoko
Copy link
Contributor Author

bomoko commented Jun 21, 2018

I've added an option that will do this - namely --display-effective-replacements

If it is passed through, the dump will not run, but the following kind of output will be generated.
I'm thinking it'll also deal with the skip table output once I get to that.

~/projects/amazee/gdpr-dump$ ./mysqldump -uroot -ppassword --host=localhost testmysqldump --display-effective-replacements
gdpr-replacements={"fakertest":{"name":{"formatter":"username"},"telephone":{"formatter":"password"}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant