- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestGenericsUpdate (0.28 seconds)
-
tests/generics_test.go
ctx := context.Background() // Just test that the API can be called _, err := gorm.G[User](DB).Count(ctx, "*") if err != nil { t.Fatalf("Count failed: %v", err) } } func TestGenericsUpdate(t *testing.T) { ctx := context.Background() // Just test that the API can be called _, err := gorm.G[User](DB).Where("id = ?", 1).Update(ctx, "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)