()
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 65 | type constraint struct { |
| 66 | name string |
no outgoing calls
no test coverage detected