Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for to (0.23 sec)

  1. tests/migrate_test.go

    		{name: "unique to uniqueIndex", from: &UniqueStruct3{}, to: &UniqueStruct5{}, checkFunc: checkUniqueIndex},
    		{name: "unique to uniqueAndUniqueIndex", from: &UniqueStruct3{}, to: &UniqueStruct8{}, checkFunc: checkMyIndex},
    		{name: "uniqueIndex to uniqueIndex", from: &UniqueStruct5{}, to: &UniqueStruct6{}, checkFunc: checkUniqueIndex},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    	var err error
    	err = DB.Create(&q1).Error
    	if err != nil {
    		t.Errorf("failed to create:%v", err)
    	}
    
    	err = DB.Create(&q2).Error
    	if err != nil {
    		t.Errorf("failed to create:%v", err)
    	}
    
    	var qs []QueryResetNullValue
    	err = DB.Joins("Item1").Joins("Item2").Find(&qs).Error
    	if err != nil {
    		t.Errorf("failed to find:%v", err)
    	}
    
    	if len(qs) != 2 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top