TonyGravagno / mysql-zod

Fork of erwinstone Generate Zod interfaces from MySQL database
MIT License
0 stars 0 forks source link

Support modification of type names and file names #2

Open TonyGravagno opened 1 year ago

TonyGravagno commented 1 year ago

We may want to modify table names into better type names and file names. The options for camelCase and suffix are a great start. This PR introduces the 'modify' option to modify table names using simple text from/to replacement to new type names and file names. The from value can be a RegExp. See the README for explanation and examples.

This is the first introduction of this feature. More will follow.