()
| 37 | } |
| 38 | |
| 39 | func (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 | |
| 52 | func (c constraintType) goEnumNamePrefix() string { |
| 53 | switch c { |
no outgoing calls
no test coverage detected