Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for constant (3.56 sec)

  1. migrator/migrator.go

    						if rel.Field.IgnoreMigration {
    							continue
    						}
    						if constraint := rel.ParseConstraint(); constraint != nil &&
    							constraint.Schema == stmt.Schema && !queryTx.Migrator().HasConstraint(value, constraint.Name) {
    							if err := execTx.Migrator().CreateConstraint(value, constraint.Name); err != nil {
    								return err
    							}
    						}
    					}
    				}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. errors.go

    	// ErrDuplicatedKey occurs when there is a unique key constraint violation
    	ErrDuplicatedKey = errors.New("duplicated key not allowed")
    	// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
    	ErrForeignKeyViolated = errors.New("violates foreign key constraint")
    	// ErrCheckConstraintViolated occurs when there is a check constraint violation
    	ErrCheckConstraintViolated = errors.New("violates check constraint")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top