updated deps; regen ent
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package weapon
|
||||
|
||||
@@ -32,12 +32,6 @@ func IDNEQ(id int) predicate.Weapon {
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.Weapon {
|
||||
return predicate.Weapon(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.Weapon {
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.Weapon {
|
||||
return predicate.Weapon(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 VictimIn(vs ...uint64) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldVictim), v...))
|
||||
})
|
||||
}
|
||||
@@ -157,12 +139,6 @@ func VictimNotIn(vs ...uint64) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldVictim), v...))
|
||||
})
|
||||
}
|
||||
@@ -216,12 +192,6 @@ func DmgIn(vs ...uint) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldDmg), v...))
|
||||
})
|
||||
}
|
||||
@@ -233,12 +203,6 @@ func DmgNotIn(vs ...uint) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldDmg), v...))
|
||||
})
|
||||
}
|
||||
@@ -292,12 +256,6 @@ func EqTypeIn(vs ...int) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldEqType), v...))
|
||||
})
|
||||
}
|
||||
@@ -309,12 +267,6 @@ func EqTypeNotIn(vs ...int) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldEqType), v...))
|
||||
})
|
||||
}
|
||||
@@ -368,12 +320,6 @@ func HitGroupIn(vs ...int) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldHitGroup), v...))
|
||||
})
|
||||
}
|
||||
@@ -385,12 +331,6 @@ func HitGroupNotIn(vs ...int) predicate.Weapon {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.Weapon(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(FieldHitGroup), v...))
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user