-
Notifications
You must be signed in to change notification settings - Fork 22
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
Restrict which rows are dumped? #17
Comments
Hi! About your question. For now, greenmask does not support conditions for data dumping especially if we are talking about table dependencies introspected by PK references. We are working on database subsetting and it is going to be published 2024 Q2-Q3. So it will solve your problem, but not now. But now you can override the query for the table: - schema: "humanresources"
name: "employee"
query: "select * from humanresources.employee where birthdate > '1980-01-1';"
transformers:
- name: "RandomDate"
params:
column: "modifieddate"
max: "2024-01-21 11:32:30.385227"
min: "2020-01-21 11:32:30.385227" |
okay, thanks! So that would work as long as it doesn't create FK issues. |
Definitely. But it is the only way to control it right now. |
I've just opened discussions and raised conversation in #18 |
I think this issue can be closed. If any related questions will be there, let's raise them in discussions |
Is it possible to conditionally dump rows?
https://github.com/datanymizer/datanymizer?tab=readme-ov-file#transform-conditions-and-limit
Have you considered creating a Discussions section where questions like these could be asked?
The text was updated successfully, but these errors were encountered: