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

Method goTypeDescriptionPart

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

Source from the content-addressed store, hash-verified

37}
38
39func (c constraintType) goTypeDescriptionPart() string {
40 switch c {
41 case constraintTypeUnique:
42 return "unique"
43 case constraintTypeForeignKey:
44 return "foreign key"
45 case constraintTypeCheck:
46 return "check"
47 default:
48 panic(fmt.Sprintf("unknown constraint type: %s", c))
49 }
50}
51
52func (c constraintType) goEnumNamePrefix() string {
53 switch c {

Callers 1

generateConstraintsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected