Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GenericsScopes3 (0.08 sec)

  1. tests/generics_test.go

    	if len(notResult) != 2 {
    		t.Fatalf("expected 2 results, got %d", len(notResult))
    	} else if notResult[0].Name != "GenericsScopes2" || notResult[1].Name != "GenericsScopes3" {
    		t.Fatalf("expected names 'GenericsScopes2' and 'GenericsScopes3', got %s and %s", notResult[0].Name, notResult[1].Name)
    	}
    
    	orResult, err := gorm.G[User](DB).Or("name = ?", "GenericsScopes1").Or("name = ?", "GenericsScopes2").Order("name").Find(ctx)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top