- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 63 for affected (0.03 seconds)
-
tests/create_test.go
if res.Error != nil || res.RowsAffected != 1 { t.Fatalf("first or create rows affect err:%v rows:%d", res.Error, res.RowsAffected) } res = DB.FirstOrCreate(&user, "name = ?", user.Name) if res.Error != nil || res.RowsAffected != 0 { t.Fatalf("first or create rows affect err:%v rows:%d", res.Error, res.RowsAffected) } } func TestCreateWithAutoIncrementCompositeKey(t *testing.T) {Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 09:55:20 GMT 2025 - 26.8K bytes - Click Count (0) -
tests/query_test.go
t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected) } var sub2 []User // only offset if result := DB.Offset(3).Where("name = ?", users[0].Name).FindInBatches(&sub2, 2, func(tx *gorm.DB, batch int) error { return nil }); result.Error != nil || result.RowsAffected != 7 { t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 22 06:21:04 GMT 2025 - 51K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/50_maintainer_chore.yml
validations: required: true - type: textarea id: context attributes: label: Context (optional) description: | How has this issue affected you? What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world validations:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Sep 12 11:52:53 GMT 2023 - 856 bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/20_contributor_feature_request.yml
validations: required: false - type: textarea id: context attributes: label: Context description: | How has this issue affected you? What are you trying to accomplish? What other alternatives have you considered? Providing context helps us come up with a solution that is most useful in the real world validations:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Nov 27 15:48:22 GMT 2025 - 1.5K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/40_contributor_documentation.yml
validations: required: true - type: textarea id: context attributes: label: Context (optional) description: | How has this issue affected you? What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world validations: required: false - type: input id: page attributes:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Jan 15 10:01:01 GMT 2024 - 1.6K bytes - Click Count (0) -
tests/customize_field_test.go
expected := "foo" now := time.Now() cc := CustomizeColumn{ID: 666, Name: expected, Date: &now} if count := DB.Create(&cc).RowsAffected; count != 1 { t.Error("There should be one record be affected when create record") } var cc1 CustomizeColumn DB.First(&cc1, "mapped_name = ?", "foo") if cc1.Name != expected { t.Errorf("Failed to query CustomizeColumn") } cc.Name = "bar" DB.Save(&cc)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 11 09:33:31 GMT 2020 - 6.9K bytes - Click Count (0) -
CODE_OF_CONDUCT.md
* Demonstrating empathy and kindness toward other people * Being respectful of differing opinions, viewpoints, and experiences * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience * Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include:
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 17 06:18:13 GMT 2024 - 5K bytes - Click Count (0) -
tests/associations_test.go
t.Fatalf("member id is not equal: expects: %v, got: %v", 100, profile2.MemberID) } if r := DB.Delete(&member); r.Error != nil || r.RowsAffected != 1 { t.Fatalf("Should delete member, got error: %v, affected: %v", r.Error, r.RowsAffected) } var result Member if err := DB.First(&result, member.ID).Error; err == nil { t.Fatalf("Should not find deleted member") }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 13.3K bytes - Click Count (0) -
tests/delete_test.go
t.Fatalf("user's primary key should has value after create, got : %v", user.ID) } } if res := DB.Delete(&users[1]); res.Error != nil || res.RowsAffected != 1 { t.Errorf("errors happened when delete: %v, affected: %v", res.Error, res.RowsAffected) } var result User if err := DB.Where("id = ?", users[1].ID).First(&result).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 9.5K bytes - Click Count (0) -
tests/generics_test.go
t.Errorf("found invalid user, got %v", u) } name += "Update" rows, err := gorm.G[User](DB).Where("id = ?", u.ID).Update(ctx, "name", name) if rows != 1 { t.Fatalf("failed to get affected rows, got %d, should be %d", rows, 1) } nu, err := gorm.G[User](DB).Where("name = ?", name).First(ctx) if err != nil { t.Fatalf("failed to find user, got error: %v", err)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 33.7K bytes - Click Count (0)