updated deps; regen ent

This commit is contained in:
2022-08-15 12:10:15 +02:00
parent b8b9f82067
commit 657ca32bb3
66 changed files with 1578 additions and 4744 deletions

View File

@@ -1,4 +1,4 @@
// Code generated by entc, DO NOT EDIT.
// Code generated by ent, DO NOT EDIT.
package roundstats
@@ -32,12 +32,6 @@ func IDNEQ(id int) predicate.RoundStats {
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.RoundStats {
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(ids) == 0 {
s.Where(sql.False())
return
}
v := make([]interface{}, len(ids))
for i := range v {
v[i] = ids[i]
@@ -49,12 +43,6 @@ func IDIn(ids ...int) predicate.RoundStats {
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.RoundStats {
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(ids) == 0 {
s.Where(sql.False())
return
}
v := make([]interface{}, len(ids))
for i := range v {
v[i] = ids[i]
@@ -140,12 +128,6 @@ func RoundIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldRound), v...))
})
}
@@ -157,12 +139,6 @@ func RoundNotIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldRound), v...))
})
}
@@ -216,12 +192,6 @@ func BankIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldBank), v...))
})
}
@@ -233,12 +203,6 @@ func BankNotIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldBank), v...))
})
}
@@ -292,12 +256,6 @@ func EquipmentIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldEquipment), v...))
})
}
@@ -309,12 +267,6 @@ func EquipmentNotIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldEquipment), v...))
})
}
@@ -368,12 +320,6 @@ func SpentIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldSpent), v...))
})
}
@@ -385,12 +331,6 @@ func SpentNotIn(vs ...uint) predicate.RoundStats {
v[i] = vs[i]
}
return predicate.RoundStats(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldSpent), v...))
})
}