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

Pass table name to extension functions #8

Merged
merged 1 commit into from
Oct 7, 2021
Merged

Pass table name to extension functions #8

merged 1 commit into from
Oct 7, 2021

Conversation

kfranqueiro
Copy link
Contributor

I have a use case where multiple tables have a name field, but only one of them refers to PII that needs to be scrubbed, while the other tables should remain intact.

Currently there's no way to disambiguate which table we're working with. This PR would pass the table name as an additional argument to extension functions so that they can make smarter decisions about how/if to anonymize.

Open to other ideas here; I figured this way wouldn't cause any breaking changes.

@imreFitos
Copy link

Does something hold back this PR that I can help with?

@rap2hpoutre
Copy link
Owner

Thank you for your contribution @kfranqueiro and sorry for late answer (cc @imreFitos) 🙏

@rap2hpoutre rap2hpoutre merged commit 9f0a8f8 into rap2hpoutre:main Oct 7, 2021
github-actions bot pushed a commit that referenced this pull request Mar 13, 2022
# [0.5.0](v0.4.0...v0.5.0) (2022-03-13)

### Features

* add support to specify tables in list of columns ([#13](#13)) ([bc6638d](bc6638d))
* new option to read replacements from a file ([#18](#18)) ([a7c6441](a7c6441))
* output can be stdout so you can pipe it to other commands ([#19](#19)) ([11e46ce](11e46ce))
* table name to extension functions ([#8](#8)) ([9f0a8f8](9f0a8f8))
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 this pull request may close these issues.

3 participants