MCPcopy Index your code
hub / github.com/coder/coder / goEnumNamePrefix

Method goEnumNamePrefix

scripts/dbgen/constraint.go:52–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (c constraintType) goEnumNamePrefix() string {
53 switch c {
54 case constraintTypeUnique:
55 return "Unique"
56 case constraintTypeForeignKey:
57 return "ForeignKey"
58 case constraintTypeCheck:
59 return "Check"
60 default:
61 panic(fmt.Sprintf("unknown constraint type: %s", c))
62 }
63}
64
65type constraint struct {
66 name string

Callers 1

generateConstraintsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected