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 ent
@@ -44,8 +44,7 @@ type RoundStatsEdges struct {
func (e RoundStatsEdges) MatchPlayerOrErr() (*MatchPlayer, error) {
if e.loadedTypes[0] {
if e.MatchPlayer == nil {
// The edge match_player was loaded in eager-loading,
// but was not found.
// Edge was loaded but was not found.
return nil, &NotFoundError{label: matchplayer.Label}
}
return e.MatchPlayer, nil
@@ -134,11 +133,11 @@ func (rs *RoundStats) Update() *RoundStatsUpdateOne {
// Unwrap unwraps the RoundStats entity that was returned from a transaction after it was closed,
// so that all future queries will be executed through the driver which created the transaction.
func (rs *RoundStats) Unwrap() *RoundStats {
tx, ok := rs.config.driver.(*txDriver)
_tx, ok := rs.config.driver.(*txDriver)
if !ok {
panic("ent: RoundStats is not a transactional entity")
}
rs.config.driver = tx.drv
rs.config.driver = _tx.drv
return rs
}
@@ -146,14 +145,17 @@ func (rs *RoundStats) Unwrap() *RoundStats {
func (rs *RoundStats) String() string {
var builder strings.Builder
builder.WriteString("RoundStats(")
builder.WriteString(fmt.Sprintf("id=%v", rs.ID))
builder.WriteString(", round=")
builder.WriteString(fmt.Sprintf("id=%v, ", rs.ID))
builder.WriteString("round=")
builder.WriteString(fmt.Sprintf("%v", rs.Round))
builder.WriteString(", bank=")
builder.WriteString(", ")
builder.WriteString("bank=")
builder.WriteString(fmt.Sprintf("%v", rs.Bank))
builder.WriteString(", equipment=")
builder.WriteString(", ")
builder.WriteString("equipment=")
builder.WriteString(fmt.Sprintf("%v", rs.Equipment))
builder.WriteString(", spent=")
builder.WriteString(", ")
builder.WriteString("spent=")
builder.WriteString(fmt.Sprintf("%v", rs.Spent))
builder.WriteByte(')')
return builder.String()