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

Method HasConstraint

migrator.go:103–103  ·  view source on GitHub ↗
(dst interface{}, name string)

Source from the content-addressed store, hash-verified

101 CreateConstraint(dst interface{}, name string) error
102 DropConstraint(dst interface{}, name string) error
103 HasConstraint(dst interface{}, name string) bool
104
105 // Indexes
106 CreateIndex(dst interface{}, name string) error

Callers 6

AutoMigrateMethod · 0.65
TestMigrateFunction · 0.65
TestMigrateConstraintFunction · 0.65
TestCurrentTimestampFunction · 0.65
TestUniqueColumnFunction · 0.65

Implementers 1

Migratormigrator/migrator.go

Calls

no outgoing calls

Tested by 5

TestMigrateFunction · 0.52
TestMigrateConstraintFunction · 0.52
TestCurrentTimestampFunction · 0.52
TestUniqueColumnFunction · 0.52