Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for uniqueConstraints (0.06 seconds)

  1. migrator/migrator.go

    		for k := range checkConstraints {
    			if checkConstraints[k].Field == field {
    				v := checkConstraints[k]
    				return &v, stmt.Table
    			}
    		}
    
    		for k := range uniqueConstraints {
    			if uniqueConstraints[k].Field == field {
    				v := uniqueConstraints[k]
    				return &v, stmt.Table
    			}
    		}
    
    		for _, rel := range stmt.Schema.Relationships.Relations {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Oct 26 12:31:09 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  2. schema/constraint.go

    				checks[name] = CheckConstraint{Name: name, Constraint: chk, Field: field}
    			}
    		}
    	}
    	return checks
    }
    
    type UniqueConstraint struct {
    	Name  string
    	Field *Field
    }
    
    func (uni *UniqueConstraint) GetName() string { return uni.Name }
    
    func (uni *UniqueConstraint) Build() (sql string, vars []interface{}) {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Mar 18 07:33:54 GMT 2024
    - 1.9K bytes
    - Click Count (0)
Back to Top