Skip to content

Model generation inflection naming  #1526

Closed
@danicc097

Description

@danicc097

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    💻 linux🔧 pythonPull requests that update Python codebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions