()
| 24 | ) |
| 25 | |
| 26 | func (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 | |
| 39 | func (c constraintType) goTypeDescriptionPart() string { |
| 40 | switch c { |
no outgoing calls
no test coverage detected