- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,022 for happened (0.06 sec)
-
tests/associations_has_many_test.go
} // Append DB.Model(&users).Association("Pets").Append( &Pet{Name: "pet-slice-append-1"}, []*Pet{{Name: "pet-slice-append-2-1"}, {Name: "pet-slice-append-2-2"}}, &Pet{Name: "pet-slice-append-3"}, ) AssertAssociationCount(t, users, "Pets", 10, "After Append") // Replace -> same as append DB.Model(&users).Association("Pets").Replace(
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
tests/associations_has_one_test.go
} // Append DB.Model(&users).Association("Account").Append( &Account{Number: "account-slice-append-1"}, &Account{Number: "account-slice-append-2"}, &Account{Number: "account-slice-append-3"}, ) AssertAssociationCount(t, users, "Account", 3, "After Append") // Replace -> same as append // Delete
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
tests/gorm_test.go
t.Fatalf("errors happened on create: %v", results.Error) } else if results.RowsAffected != 1 { t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected) } else if u1.ID == 0 { t.Fatalf("ID expects : not equal 0, got %v", u1.ID) } got := user{} results := DB.First(&got, "id = ?", u1.ID) if results.Error != nil { t.Fatalf("errors happened on first: %v", results.Error)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
tests/associations_belongs_to_test.go
if err := DB.Model(&user2).Association("Company").Append(&company); err != nil { t.Fatalf("Error happened when append Company, got %v", err) } if err := DB.Model(&user2).Association("Manager").Append(manager); err != nil { t.Fatalf("Error happened when append Manager, got %v", err) } AssertAssociationCount(t, user2, "Company", 1, "after prepare data")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 9.3K bytes - Viewed (0) -
tests/associations_many2many_test.go
DB.Create(&language) if err := DB.Model(&user2).Association("Languages").Append(&language); err != nil { t.Fatalf("Error happened when append account, got %v", err) } user.Languages = append(user.Languages, language) CheckUser(t, user2, user) AssertAssociationCount(t, user, "Languages", 3, "AfterAppend") languages := []Language{ {Code: "language-many2many-append-1-1", Name: "language-many2many-append-1-1"},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Jun 10 13:05:19 UTC 2023 - 13.2K bytes - Viewed (0) -
tests/create_test.go
} if results := DB.Create(&users); results.Error != nil { t.Fatalf("errors happened when create: %v", results.Error) } else if results.RowsAffected != int64(len(users)) { t.Fatalf("rows affected expects: %v, got %v", len(users), results.RowsAffected) } var userIDs []uint for _, user := range users { userIDs = append(userIDs, user.ID) CheckUser(t, user, user) } var users2 []User
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
tests/preload_test.go
pet.Toy = Toy{Name: user.Name + "_toy_nested_preload_" + strconv.Itoa(idx+1)} } } if err := DB.Create(&users).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } var userIDs []uint for _, user := range users { userIDs = append(userIDs, user.ID) } var users2 []User DB.Preload("Pets.Toy").Find(&users2, "id IN ?", userIDs) for idx, user := range users2 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/tflite-other.md
compiling from source placeholder: validations: required: false - type: textarea id: what-happened attributes: label: Current Behaviour? description: Also tell us, what did you expect to happen? placeholder: Tell us what you see! value: "A bug happened!" render: shell validations: required: true - type: textarea id: code-to-reproduce attributes: label: Standalone code to
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Dec 29 22:28:29 UTC 2022 - 3.4K bytes - Viewed (0) -
tests/hooks_test.go
t.Fatalf("An error from before update callbacks happened when update with invalid value") } if DB.Where("code = ?", "update_callback").First(&Product{}).Error != nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") } if DB.Where("code = ?", "dont_update").First(&Product{}).Error == nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
tests/update_test.go
t.Errorf("errors happened when query before user: %v", err) } CheckUser(t, first, *users[0]) if err := DB.Where("id = ?", users[2].ID).First(&last).Error; err != nil { t.Errorf("errors happened when query after user: %v", err) } CheckUser(t, last, *users[2]) } if err := DB.Create(&users).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } else if user.ID == 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0)