Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Hafner (0.17 sec)

  1. tests/query_test.go

    		t.Errorf("incorrect total batch, expects: %v, got %v", 6, totalBatch)
    	}
    
    	var count int64
    	DB.Model(&User{}).Where("name = ?", "find_in_batches_new").Count(&count)
    	if count != 6 {
    		t.Errorf("incorrect count after update, expects: %v, got %v", 6, count)
    	}
    }
    
    func TestFindInBatchesWithOffsetLimit(t *testing.T) {
    	users := []User{
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    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)
  2. tests/migrate_test.go

    		t.Fatalf("Should find index for user's name after rename")
    	}
    
    	if err := DB.Migrator().DropIndex(&IndexStruct{}, "idx_users_name_1"); err != nil {
    		t.Fatalf("Failed to drop index for user's name, got err %v", err)
    	}
    
    	if DB.Migrator().HasIndex(&IndexStruct{}, "idx_users_name_1") {
    		t.Fatalf("Should not find index for user's name after delete")
    	}
    }
    
    func TestTiDBMigrateColumns(t *testing.T) {
    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)
Back to top