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

@@ -9,6 +9,8 @@ import (
"sync"
"time"
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages"
@@ -17,8 +19,6 @@ import (
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon"
"entgo.io/ent"
)
const (
@@ -971,11 +971,26 @@ func (m *MatchMutation) Where(ps ...predicate.Match) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the MatchMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *MatchMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.Match, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *MatchMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *MatchMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (Match).
func (m *MatchMutation) Type() string {
return m.typ
@@ -4128,11 +4143,26 @@ func (m *MatchPlayerMutation) Where(ps ...predicate.MatchPlayer) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the MatchPlayerMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *MatchPlayerMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.MatchPlayer, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *MatchPlayerMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *MatchPlayerMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (MatchPlayer).
func (m *MatchPlayerMutation) Type() string {
return m.typ
@@ -5779,11 +5809,26 @@ func (m *MessagesMutation) Where(ps ...predicate.Messages) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the MessagesMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *MessagesMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.Messages, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *MessagesMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *MessagesMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (Messages).
func (m *MessagesMutation) Type() string {
return m.typ
@@ -7145,11 +7190,26 @@ func (m *PlayerMutation) Where(ps ...predicate.Player) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the PlayerMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *PlayerMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.Player, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *PlayerMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *PlayerMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (Player).
func (m *PlayerMutation) Type() string {
return m.typ
@@ -8165,11 +8225,26 @@ func (m *RoundStatsMutation) Where(ps ...predicate.RoundStats) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the RoundStatsMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *RoundStatsMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.RoundStats, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *RoundStatsMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *RoundStatsMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (RoundStats).
func (m *RoundStatsMutation) Type() string {
return m.typ
@@ -8703,11 +8778,26 @@ func (m *SprayMutation) Where(ps ...predicate.Spray) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the SprayMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *SprayMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.Spray, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *SprayMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *SprayMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (Spray).
func (m *SprayMutation) Type() string {
return m.typ
@@ -9308,11 +9398,26 @@ func (m *WeaponMutation) Where(ps ...predicate.Weapon) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the WeaponMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *WeaponMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.Weapon, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *WeaponMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *WeaponMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (Weapon).
func (m *WeaponMutation) Type() string {
return m.typ