rap2hpoutre / pg-anonymizer

Dump anonymized PostgreSQL database with a NodeJS CLI
https://raph.site
MIT License
225 stars 31 forks source link

Ignore NULL values #34

Closed fsschmitt closed 1 year ago

fsschmitt commented 2 years ago

Hey 👋

It would be cool if it would be possible to set a configuration to even when using faker's config file, to set that any field that is NULL in the DB it should remain NULL instead of generating a fake name for example.

Let me know where I can help!

Cheers!

monta42 commented 1 year ago

Hello,

I would be happy about this addition as well. And it would be great if it would be possible to keep empty fields as empty and not replace them with random data. Unfortunately, I don't know TS well enough to add this myself.

Cheers!

jackall3n commented 1 year ago

Hopefully this gets merged: https://github.com/rap2hpoutre/pg-anonymizer/pull/40/files

rap2hpoutre commented 1 year ago

Thank you! Fixed, released!!