chore: bump all go dependencies (#614)

* bump all

* code-generation

Former-commit-id: c0e8e34065
This commit is contained in:
Hayden 2023-11-15 20:30:49 -06:00 committed by GitHub
parent 742ece7923
commit 1adf24e109
40 changed files with 659 additions and 292 deletions

View file

@ -1592,32 +1592,15 @@ func HasAttachmentsWith(preds ...predicate.Attachment) predicate.Item {
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Item) predicate.Item {
return predicate.Item(func(s *sql.Selector) {
s1 := s.Clone().SetP(nil)
for _, p := range predicates {
p(s1)
}
s.Where(s1.P())
})
return predicate.Item(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Item) predicate.Item {
return predicate.Item(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.Item(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Item) predicate.Item {
return predicate.Item(func(s *sql.Selector) {
p(s.Not())
})
return predicate.Item(sql.NotPredicates(p))
}