regenerate ent

This commit is contained in:
2025-10-26 05:09:47 +01:00
parent 5358d9dd0f
commit ab8b0b983c
46 changed files with 6050 additions and 5607 deletions

View File

@@ -258,32 +258,15 @@ func HasStatWith(preds ...predicate.MatchPlayer) predicate.Weapon {
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Weapon) predicate.Weapon {
return predicate.Weapon(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for _, p := range predicates {
p(s1)
}
s.Where(s1.P())
})
return predicate.Weapon(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Weapon) predicate.Weapon {
return predicate.Weapon(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for i, p := range predicates {
if i > 0 {
s1.Or()
}
p(s1)
}
s.Where(s1.P())
})
return predicate.Weapon(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Weapon) predicate.Weapon {
return predicate.Weapon(func(s *sql.Selector) {
p(s.Not())
})
return predicate.Weapon(sql.NotPredicates(p))
}