MCPcopy
hub / github.com/go-gorm/gorm / ColumnName

Method ColumnName

schema/naming.go:62–64  ·  view source on GitHub ↗

ColumnName convert string to column name

(table, column string)

Source from the content-addressed store, hash-verified

60
61// ColumnName convert string to column name
62func (ns NamingStrategy) ColumnName(table, column string) string {
63 return ns.toDBName(column)
64}
65
66// JoinTableName convert string to join table name
67func (ns NamingStrategy) JoinTableName(str string) string {

Callers 4

TestMigrateColumnOrderFunction · 0.95
TestNamingStrategyFunction · 0.95
TestCustomReplacerFunction · 0.95

Calls 1

toDBNameMethod · 0.95

Tested by 4

TestMigrateColumnOrderFunction · 0.76
TestNamingStrategyFunction · 0.76
TestCustomReplacerFunction · 0.76