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

Exclude table prefix #131

Open
brainsiq opened this issue Dec 22, 2020 · 1 comment
Open

Exclude table prefix #131

brainsiq opened this issue Dec 22, 2020 · 1 comment

Comments

@brainsiq
Copy link

Thanks for the useful module.

I have a database containing prefixed tables that I never want to consume through zongji but I don't really want to maintain that list of tables in the excludeSchema field as it changes reguarly.

It'd be nice to be able to pass prefixes to excudeSchema. Would you consider this a PR containing feature? Maybe excludeSchema and includeSchema could also accept an object like:

excludeSchema: { 'my_database': ['allow_table', 'another_table', { prefix: 'my_prefix' }], 'another_db': true }
@brainsiq brainsiq changed the title Exclude wildcards Exclude table prefix Dec 22, 2020
@brainsiq
Copy link
Author

The change to implement the above idea is pretty simple:

image

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

1 participant