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 matchplayer
@@ -32,12 +32,6 @@ func IDNEQ(id int) predicate.MatchPlayer {
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.MatchPlayer {
return predicate.MatchPlayer(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.MatchPlayer {
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.MatchPlayer {
return predicate.MatchPlayer(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]
@@ -329,12 +317,6 @@ func TeamIDIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldTeamID), v...))
})
}
@@ -346,12 +328,6 @@ func TeamIDNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldTeamID), v...))
})
}
@@ -405,12 +381,6 @@ func KillsIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldKills), v...))
})
}
@@ -422,12 +392,6 @@ func KillsNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldKills), v...))
})
}
@@ -481,12 +445,6 @@ func DeathsIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDeaths), v...))
})
}
@@ -498,12 +456,6 @@ func DeathsNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDeaths), v...))
})
}
@@ -557,12 +509,6 @@ func AssistsIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldAssists), v...))
})
}
@@ -574,12 +520,6 @@ func AssistsNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldAssists), v...))
})
}
@@ -633,12 +573,6 @@ func HeadshotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldHeadshot), v...))
})
}
@@ -650,12 +584,6 @@ func HeadshotNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldHeadshot), v...))
})
}
@@ -709,12 +637,6 @@ func MvpIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMvp), v...))
})
}
@@ -726,12 +648,6 @@ func MvpNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMvp), v...))
})
}
@@ -785,12 +701,6 @@ func ScoreIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldScore), v...))
})
}
@@ -802,12 +712,6 @@ func ScoreNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldScore), v...))
})
}
@@ -861,12 +765,6 @@ func RankNewIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldRankNew), v...))
})
}
@@ -878,12 +776,6 @@ func RankNewNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldRankNew), v...))
})
}
@@ -951,12 +843,6 @@ func RankOldIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldRankOld), v...))
})
}
@@ -968,12 +854,6 @@ func RankOldNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldRankOld), v...))
})
}
@@ -1041,12 +921,6 @@ func Mk2In(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk2), v...))
})
}
@@ -1058,12 +932,6 @@ func Mk2NotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk2), v...))
})
}
@@ -1131,12 +999,6 @@ func Mk3In(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk3), v...))
})
}
@@ -1148,12 +1010,6 @@ func Mk3NotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk3), v...))
})
}
@@ -1221,12 +1077,6 @@ func Mk4In(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk4), v...))
})
}
@@ -1238,12 +1088,6 @@ func Mk4NotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk4), v...))
})
}
@@ -1311,12 +1155,6 @@ func Mk5In(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk5), v...))
})
}
@@ -1328,12 +1166,6 @@ func Mk5NotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMk5), v...))
})
}
@@ -1401,12 +1233,6 @@ func DmgEnemyIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDmgEnemy), v...))
})
}
@@ -1418,12 +1244,6 @@ func DmgEnemyNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDmgEnemy), v...))
})
}
@@ -1491,12 +1311,6 @@ func DmgTeamIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDmgTeam), v...))
})
}
@@ -1508,12 +1322,6 @@ func DmgTeamNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldDmgTeam), v...))
})
}
@@ -1581,12 +1389,6 @@ func UdHeIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdHe), v...))
})
}
@@ -1598,12 +1400,6 @@ func UdHeNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdHe), v...))
})
}
@@ -1671,12 +1467,6 @@ func UdFlamesIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdFlames), v...))
})
}
@@ -1688,12 +1478,6 @@ func UdFlamesNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdFlames), v...))
})
}
@@ -1761,12 +1545,6 @@ func UdFlashIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdFlash), v...))
})
}
@@ -1778,12 +1556,6 @@ func UdFlashNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdFlash), v...))
})
}
@@ -1851,12 +1623,6 @@ func UdDecoyIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdDecoy), v...))
})
}
@@ -1868,12 +1634,6 @@ func UdDecoyNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdDecoy), v...))
})
}
@@ -1941,12 +1701,6 @@ func UdSmokeIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdSmoke), v...))
})
}
@@ -1958,12 +1712,6 @@ func UdSmokeNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldUdSmoke), v...))
})
}
@@ -2031,12 +1779,6 @@ func CrosshairIn(vs ...string) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldCrosshair), v...))
})
}
@@ -2048,12 +1790,6 @@ func CrosshairNotIn(vs ...string) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldCrosshair), v...))
})
}
@@ -2156,12 +1892,6 @@ func ColorIn(vs ...Color) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldColor), v...))
})
}
@@ -2173,12 +1903,6 @@ func ColorNotIn(vs ...Color) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldColor), v...))
})
}
@@ -2218,12 +1942,6 @@ func KastIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldKast), v...))
})
}
@@ -2235,12 +1953,6 @@ func KastNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldKast), v...))
})
}
@@ -2308,12 +2020,6 @@ func FlashDurationSelfIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationSelf), v...))
})
}
@@ -2325,12 +2031,6 @@ func FlashDurationSelfNotIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationSelf), v...))
})
}
@@ -2398,12 +2098,6 @@ func FlashDurationTeamIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationTeam), v...))
})
}
@@ -2415,12 +2109,6 @@ func FlashDurationTeamNotIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationTeam), v...))
})
}
@@ -2488,12 +2176,6 @@ func FlashDurationEnemyIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationEnemy), v...))
})
}
@@ -2505,12 +2187,6 @@ func FlashDurationEnemyNotIn(vs ...float32) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashDurationEnemy), v...))
})
}
@@ -2578,12 +2254,6 @@ func FlashTotalSelfIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalSelf), v...))
})
}
@@ -2595,12 +2265,6 @@ func FlashTotalSelfNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalSelf), v...))
})
}
@@ -2668,12 +2332,6 @@ func FlashTotalTeamIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalTeam), v...))
})
}
@@ -2685,12 +2343,6 @@ func FlashTotalTeamNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalTeam), v...))
})
}
@@ -2758,12 +2410,6 @@ func FlashTotalEnemyIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalEnemy), v...))
})
}
@@ -2775,12 +2421,6 @@ func FlashTotalEnemyNotIn(vs ...uint) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashTotalEnemy), v...))
})
}
@@ -2848,12 +2488,6 @@ func MatchStatsIn(vs ...uint64) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMatchStats), v...))
})
}
@@ -2865,12 +2499,6 @@ func MatchStatsNotIn(vs ...uint64) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldMatchStats), v...))
})
}
@@ -2910,12 +2538,6 @@ func PlayerStatsIn(vs ...uint64) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldPlayerStats), v...))
})
}
@@ -2927,12 +2549,6 @@ func PlayerStatsNotIn(vs ...uint64) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldPlayerStats), v...))
})
}
@@ -2972,12 +2588,6 @@ func FlashAssistsIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashAssists), v...))
})
}
@@ -2989,12 +2599,6 @@ func FlashAssistsNotIn(vs ...int) predicate.MatchPlayer {
v[i] = vs[i]
}
return predicate.MatchPlayer(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(FieldFlashAssists), v...))
})
}