DekodeInteraktiv / anonymize-mysqldump

Allows you to pipe data from mysqldump or an SQL file and anonymize it.
GNU General Public License v3.0
17 stars 9 forks source link

Add table removal flag #9

Closed Clorith closed 2 years ago

Clorith commented 2 years ago

Some data can not easily be defined, and anonymized, unless the content of them is heavily curated. The most recurring of such cases is Gravity Forms, with custom tables, and no meta references to anonymize, but instead cross-referenced IDs.

To simplify this, adding support for a pattern flag of purge: true to let the anonymizer just skip all the insert or update rows for a given table name match would then let you skip all entries, without needing to exclude tables when doing the database dump originally.

Clorith commented 2 years ago

Added with b93c0d4b948c890bbebf5a1104d9bf89f957fb4d