- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGenericsWithResult (1.62 sec)
-
tests/generics_test.go
} else if langs[0].Name != "upsert-new" { t.Errorf("should update name on conflict, but got name %+v", langs[0].Name) } } func TestGenericsWithResult(t *testing.T) { ctx := context.Background() users := []User{{Name: "TestGenericsWithResult", Age: 18}, {Name: "TestGenericsWithResult2", Age: 18}} result := gorm.WithResult() err := gorm.G[User](DB, result).CreateInBatches(ctx, &users, 2)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)