MCPcopy
hub / github.com/go-gorm/gorm / CreateConstraint

Method CreateConstraint

migrator.go:101–101  ·  view source on GitHub ↗

Constraints

(dst interface{}, name string)

Source from the content-addressed store, hash-verified

99
100 // Constraints
101 CreateConstraint(dst interface{}, name string) error
102 DropConstraint(dst interface{}, name string) error
103 HasConstraint(dst interface{}, name string) bool
104

Callers 3

AutoMigrateMethod · 0.65
MigrateColumnUniqueMethod · 0.65
TestMigrateConstraintFunction · 0.65

Implementers 1

Migratormigrator/migrator.go

Calls

no outgoing calls

Tested by 1

TestMigrateConstraintFunction · 0.52