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

Struct CheckConstraint

schema/constraint.go:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11var regEnLetterAndMidline = regexp.MustCompile(`^[\w-]+$`)
12
13type CheckConstraint struct {
14 Name string
15 Constraint string // length(phone) >= 10
16 *Field
17}
18
19func (chk *CheckConstraint) GetName() string { return chk.Name }
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected