sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Model generation inflection naming

Open danicc097 opened this issue 3 years ago • 0 comments

Version

1.12.0

What happened?

While testing python codegen, I found a rather curious output: any table that ends in "ta" gets a model that ends in "tum" due to the inflection library, so e.g. many-to-many tables are particularly affected since I already use the singular form. A manual fix like with "meta" #1217 wouldn't work for these cases

Is it possible to allow passing a list of table names to the config file to omit in inflection's Singular() instead? This way autogenerated SQL schemas will also be able to use it

What operating system are you using?

Linux

danicc097 avatar Apr 02 '22 21:04 danicc097