Closed theduke closed 6 years ago
More and more I think I can see the need for this. I'd like to base it on top of the v3 code though since it'll be quite an involved change I think. And it needs to be developed alongside the name collision avoidance code. Since that's going to end up being something really important: https://github.com/volatiletech/sqlboiler/issues/116
The generated Go names for Tables, Columns, and Relationships can now be aliased to prevent collisions: https://github.com/volatiletech/sqlboiler/tree/v3#names
I have to work with a convoluted legacy database, where table names and column names are more or less unusable as struct and field names.
I'd need some way of overwriting struct and column names in the generated code, while still preserving the option to re-generate everything.
Something like this would be nice:
sqlBoiler.toml
Is this something you would accept / support?
I'm willing to whip up a PR if so.