Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Schick (0.17 sec)

  1. schema/check.go

    type Check struct {
    	Name       string
    	Constraint string // length(phone) >= 10
    	*Field
    }
    
    // ParseCheckConstraints parse schema check constraints
    func (schema *Schema) ParseCheckConstraints() map[string]Check {
    	checks := map[string]Check{}
    	for _, field := range schema.FieldsByDBName {
    		if chk := field.TagSettings["CHECK"]; chk != "" {
    			names := strings.Split(chk, ",")
    Go
    - Registered: Sun Jan 28 09:35:12 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 948 bytes
    - Viewed (0)
Back to top