Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for No (0.11 sec)

  1. tests/migrate_test.go

    		t.Fatalf("no error should happened when alter column, but got %v", err)
    	}
    
    	if err := DB.Table("column_structs").AutoMigrate(&ColumnStruct2{}); err != nil {
    		t.Fatalf("no error should happened when auto migrate column, but got %v", err)
    	}
    
    	if columnTypes, err := DB.Migrator().ColumnTypes(&ColumnStruct{}); err != nil {
    		t.Fatalf("no error should returns for ColumnTypes")
    	} else {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    	if err := DB.Where(&user).First(&User{}).Error; err != nil {
    		t.Errorf("search with struct with association should returns no error, but got %v", err)
    	}
    
    	if err := DB.Where(user).First(&User{}).Error; err != nil {
    		t.Errorf("search with struct with association should returns no error, but got %v", err)
    	}
    }
    
    func TestFindInBatches(t *testing.T) {
    	users := []User{
    		*GetUser("find_in_batches", Config{}),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top