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

Method goType

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

Source from the content-addressed store, hash-verified

24)
25
26func (c constraintType) goType() string {
27 switch c {
28 case constraintTypeUnique:
29 return "UniqueConstraint"
30 case constraintTypeForeignKey:
31 return "ForeignKeyConstraint"
32 case constraintTypeCheck:
33 return "CheckConstraint"
34 default:
35 panic(fmt.Sprintf("unknown constraint type: %s", c))
36 }
37}
38
39func (c constraintType) goTypeDescriptionPart() string {
40 switch c {

Callers 1

generateConstraintsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected