- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGenericsExecAndUpdate (0.09 sec)
-
tests/generics_test.go
found, err = gorm.G[User](DB).Where("name like ?", "GenericsCreateInBatches%").Offset(2).Limit(2).Find(ctx) if len(found) != 1 { t.Errorf("expected %d from Raw Find, got %d", 1, len(found)) } } func TestGenericsExecAndUpdate(t *testing.T) { ctx := context.Background() name := "GenericsExec" if err := gorm.G[User](DB).Exec(ctx, "INSERT INTO users(name) VALUES(?)", name); err != nil { t.Fatalf("Exec insert failed: %v", err)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)