You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this tool open source, it seems to work really well!
However: Say I an entity table, with a createdBy column, referencing account. I would like to grab a subset of entity, so i put the following in my config
Hey Jan, off the top of my head, the best way to handle this is likely with the dependency_breaks config. Normally this would be for breaking a cycle, but what it does is it sets the column entirely to NULL in order to "break the cycle". I think this should do the trick here, but have not looked into the behavior when you're using this outside of a cycle. Of course, the column must be nullable.
Otherwise, is this failing during the subset run? If it's not, you can always add a post script with post_subset_sql. If neither of these work, it'd likely take a code change to enable this behavior correctly for excluded tables. It's notable that with Tonic you could just include the table with it masked, ideally giving more utility for the output database by having the accounts table be present in a masked form.
Hi there 👋
Thanks for making this tool open source, it seems to work really well!
However: Say I an
entity
table, with acreatedBy
column, referencingaccount
. I would like to grab a subset ofentity
, so i put the following in my configHowever, I don't want to dump accounts, since they contain PII so I add
However, now the inserts into
entity
fail, becauseentity.createdBy
references an account which does not exist in my dump.I am fine with
createdBy
being set to null on all entities, but I'm not sure how / whether that's possible with this toolThe text was updated successfully, but these errors were encountered: