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

Struct NamingStrategy

schema/naming.go:35–41  ·  view source on GitHub ↗

NamingStrategy tables, columns naming strategy

Source from the content-addressed store, hash-verified

33
34// NamingStrategy tables, columns naming strategy
35type NamingStrategy struct {
36 TablePrefix string
37 SingularTable bool
38 NameReplacer Replacer
39 NoLowerCase bool
40 IdentifierMaxLength int
41}
42
43// TableName convert string to table name
44func (ns NamingStrategy) TableName(str string) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected