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

@@ -106,14 +106,14 @@ func (s *Spray) assignValues(columns []string, values []any) error {
// QueryMatchPlayers queries the "match_players" edge of the Spray entity.
func (s *Spray) QueryMatchPlayers() *MatchPlayerQuery {
return (&SprayClient{config: s.config}).QueryMatchPlayers(s)
return NewSprayClient(s.config).QueryMatchPlayers(s)
}
// Update returns a builder for updating this Spray.
// Note that you need to call Spray.Unwrap() before calling this method if this Spray
// was returned from a transaction, and the transaction was committed or rolled back.
func (s *Spray) Update() *SprayUpdateOne {
return (&SprayClient{config: s.config}).UpdateOne(s)
return NewSprayClient(s.config).UpdateOne(s)
}
// Unwrap unwraps the Spray entity that was returned from a transaction after it was closed,
@@ -143,9 +143,3 @@ func (s *Spray) String() string {
// Sprays is a parsable slice of Spray.
type Sprays []*Spray
func (s Sprays) config(cfg config) {
for _i := range s {
s[_i].config = cfg
}
}