updated deps; switched sitemap lib; ent regen

This commit is contained in:
2023-03-03 20:10:31 +01:00
parent e9a5daa9e3
commit 727d530378
52 changed files with 2626 additions and 5665 deletions

View File

@@ -10,215 +10,137 @@ import (
// ID filters vertices based on their ID field.
func ID(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
v := make([]any, len(ids))
for i := range v {
v[i] = ids[i]
}
s.Where(sql.In(s.C(FieldID), v...))
})
return predicate.Spray(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
v := make([]any, len(ids))
for i := range v {
v[i] = ids[i]
}
s.Where(sql.NotIn(s.C(FieldID), v...))
})
return predicate.Spray(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldID), id))
})
return predicate.Spray(sql.FieldLTE(FieldID, id))
}
// Weapon applies equality check predicate on the "weapon" field. It's identical to WeaponEQ.
func Weapon(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldEQ(FieldWeapon, v))
}
// Spray applies equality check predicate on the "spray" field. It's identical to SprayEQ.
func Spray(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldEQ(FieldSpray, v))
}
// WeaponEQ applies the EQ predicate on the "weapon" field.
func WeaponEQ(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldEQ(FieldWeapon, v))
}
// WeaponNEQ applies the NEQ predicate on the "weapon" field.
func WeaponNEQ(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldNEQ(FieldWeapon, v))
}
// WeaponIn applies the In predicate on the "weapon" field.
func WeaponIn(vs ...int) predicate.Spray {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.In(s.C(FieldWeapon), v...))
})
return predicate.Spray(sql.FieldIn(FieldWeapon, vs...))
}
// WeaponNotIn applies the NotIn predicate on the "weapon" field.
func WeaponNotIn(vs ...int) predicate.Spray {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.NotIn(s.C(FieldWeapon), v...))
})
return predicate.Spray(sql.FieldNotIn(FieldWeapon, vs...))
}
// WeaponGT applies the GT predicate on the "weapon" field.
func WeaponGT(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldGT(FieldWeapon, v))
}
// WeaponGTE applies the GTE predicate on the "weapon" field.
func WeaponGTE(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldGTE(FieldWeapon, v))
}
// WeaponLT applies the LT predicate on the "weapon" field.
func WeaponLT(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldLT(FieldWeapon, v))
}
// WeaponLTE applies the LTE predicate on the "weapon" field.
func WeaponLTE(v int) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldWeapon), v))
})
return predicate.Spray(sql.FieldLTE(FieldWeapon, v))
}
// SprayEQ applies the EQ predicate on the "spray" field.
func SprayEQ(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldEQ(FieldSpray, v))
}
// SprayNEQ applies the NEQ predicate on the "spray" field.
func SprayNEQ(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldNEQ(FieldSpray, v))
}
// SprayIn applies the In predicate on the "spray" field.
func SprayIn(vs ...[]byte) predicate.Spray {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.In(s.C(FieldSpray), v...))
})
return predicate.Spray(sql.FieldIn(FieldSpray, vs...))
}
// SprayNotIn applies the NotIn predicate on the "spray" field.
func SprayNotIn(vs ...[]byte) predicate.Spray {
v := make([]any, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.NotIn(s.C(FieldSpray), v...))
})
return predicate.Spray(sql.FieldNotIn(FieldSpray, vs...))
}
// SprayGT applies the GT predicate on the "spray" field.
func SprayGT(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldGT(FieldSpray, v))
}
// SprayGTE applies the GTE predicate on the "spray" field.
func SprayGTE(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldGTE(FieldSpray, v))
}
// SprayLT applies the LT predicate on the "spray" field.
func SprayLT(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldLT(FieldSpray, v))
}
// SprayLTE applies the LTE predicate on the "spray" field.
func SprayLTE(v []byte) predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldSpray), v))
})
return predicate.Spray(sql.FieldLTE(FieldSpray, v))
}
// HasMatchPlayers applies the HasEdge predicate on the "match_players" edge.
@@ -226,7 +148,6 @@ func HasMatchPlayers() predicate.Spray {
return predicate.Spray(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(MatchPlayersTable, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, MatchPlayersTable, MatchPlayersColumn),
)
sqlgraph.HasNeighbors(s, step)