- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGenericsUpsert (0.77 sec)
-
tests/generics_test.go
if err != nil { t.Fatalf("got error: %v", err) } if len(results) != 3 { t.Errorf("Three users should be found, instead found %d", len(results)) } } func TestGenericsUpsert(t *testing.T) { ctx := context.Background() lang := Language{Code: "upsert", Name: "Upsert"} if err := gorm.G[Language](DB, clause.OnConflict{DoNothing: true}).Create(ctx, &lang); err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)