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

@@ -406,39 +406,39 @@ func (mp *MatchPlayer) assignValues(columns []string, values []any) error {
// QueryMatches queries the "matches" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QueryMatches() *MatchQuery {
return (&MatchPlayerClient{config: mp.config}).QueryMatches(mp)
return NewMatchPlayerClient(mp.config).QueryMatches(mp)
}
// QueryPlayers queries the "players" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QueryPlayers() *PlayerQuery {
return (&MatchPlayerClient{config: mp.config}).QueryPlayers(mp)
return NewMatchPlayerClient(mp.config).QueryPlayers(mp)
}
// QueryWeaponStats queries the "weapon_stats" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QueryWeaponStats() *WeaponQuery {
return (&MatchPlayerClient{config: mp.config}).QueryWeaponStats(mp)
return NewMatchPlayerClient(mp.config).QueryWeaponStats(mp)
}
// QueryRoundStats queries the "round_stats" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QueryRoundStats() *RoundStatsQuery {
return (&MatchPlayerClient{config: mp.config}).QueryRoundStats(mp)
return NewMatchPlayerClient(mp.config).QueryRoundStats(mp)
}
// QuerySpray queries the "spray" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QuerySpray() *SprayQuery {
return (&MatchPlayerClient{config: mp.config}).QuerySpray(mp)
return NewMatchPlayerClient(mp.config).QuerySpray(mp)
}
// QueryMessages queries the "messages" edge of the MatchPlayer entity.
func (mp *MatchPlayer) QueryMessages() *MessagesQuery {
return (&MatchPlayerClient{config: mp.config}).QueryMessages(mp)
return NewMatchPlayerClient(mp.config).QueryMessages(mp)
}
// Update returns a builder for updating this MatchPlayer.
// Note that you need to call MatchPlayer.Unwrap() before calling this method if this MatchPlayer
// was returned from a transaction, and the transaction was committed or rolled back.
func (mp *MatchPlayer) Update() *MatchPlayerUpdateOne {
return (&MatchPlayerClient{config: mp.config}).UpdateOne(mp)
return NewMatchPlayerClient(mp.config).UpdateOne(mp)
}
// Unwrap unwraps the MatchPlayer entity that was returned from a transaction after it was closed,
@@ -561,9 +561,3 @@ func (mp *MatchPlayer) String() string {
// MatchPlayers is a parsable slice of MatchPlayer.
type MatchPlayers []*MatchPlayer
func (mp MatchPlayers) config(cfg config) {
for _i := range mp {
mp[_i].config = cfg
}
}