- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestGenericsUpdates (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/generics_test.go
// Just test that the API can be called _, err := gorm.G[User](DB).Where("id = ?", 1).Update(ctx, "name", "test") if err != nil { t.Fatalf("Update failed: %v", err) } } func TestGenericsUpdates(t *testing.T) { ctx := context.Background() // Just test that the API can be called _, err := gorm.G[User](DB).Where("id = ?", 1).Updates(ctx, User{Name: "test"}) if err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0)