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 option to select all streams/columns by default #54

Open
djdevin opened this issue Apr 25, 2018 · 2 comments
Open

add option to select all streams/columns by default #54

djdevin opened this issue Apr 25, 2018 · 2 comments

Comments

@djdevin
Copy link

djdevin commented Apr 25, 2018

This would be helpful as it won't require post-processing of the JSON to set all fields as included.

Useful for when there are database views of normalized data, since the tables and columns are typically defined beforehand and should all be included in a replication job.

@nick-mccoy
Copy link
Contributor

Hey @djdevin, I think the best solution here would be to support for a replicate-all config file flag. This flag could then be read during the sync used as a condition to determine whether fields should be replicated or not.

We encourage you to submit a pull request with the changes. Otherwise, we will make note of the feature request, but will likely not implement it unless we see more demand for it.

@djdevin
Copy link
Author

djdevin commented Oct 9, 2018

Since the catalog is JSON, this is easy enough to do with jq too:

tap-mysql -c db.json --discover | jq '.streams[].metadata[0].metadata.selected = true | .streams[].metadata[0].metadata["replication-method"] = "FULL_TABLE"' > catalog.json

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

No branches or pull requests

2 participants