DbToolsBundle icon indicating copy to clipboard operation
DbToolsBundle copied to clipboard

feature: file enum anonymizer, inject samples in database from a plain text or csv file

Open pounard opened this issue 5 months ago • 1 comments

TD;DR:

Enum file anonymizer

Given the following plain text file:

none
bad
good
expert

Then:

# db_tools.config.yaml
anonymization:
    default:
        customer:
            level:
                anonymizer: file_enum
                options: {source: ./resources/levels.txt}
  #...

For all the rest, it works exactly like any enum anonymizer, it simply load the file in the getSample() method.

pounard avatar Jul 22 '25 12:07 pounard

~~Please do not review yet, this will be rebased on top of #225.~~

EDIT: OK it's ready.

pounard avatar Jul 22 '25 12:07 pounard