I use existing DB that uses camel case for field names and snake case for table names. Gorm seems to have hardcoded ToDBName() function that is not customizable.
our table looks like this:
product_skus {
skuId string
}
@jinzhu
Here are the problems with the current approach:
Also, it is very easy to expose ToDBName() function to be modifiable.
For google users, this can be done now, PR here: https://github.com/jinzhu/gorm/pull/2040
Most helpful comment
For google users, this can be done now, PR here: https://github.com/jinzhu/gorm/pull/2040