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
@@ -42,8 +42,7 @@ type MessagesEdges struct {
func (e MessagesEdges) 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
@@ -130,11 +129,11 @@ func (m *Messages) Update() *MessagesUpdateOne {
// Unwrap unwraps the Messages 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 (m *Messages) Unwrap() *Messages {
tx, ok := m.config.driver.(*txDriver)
_tx, ok := m.config.driver.(*txDriver)
if !ok {
panic("ent: Messages is not a transactional entity")
}
m.config.driver = tx.drv
m.config.driver = _tx.drv
return m
}
@@ -142,12 +141,14 @@ func (m *Messages) Unwrap() *Messages {
func (m *Messages) String() string {
var builder strings.Builder
builder.WriteString("Messages(")
builder.WriteString(fmt.Sprintf("id=%v", m.ID))
builder.WriteString(", message=")
builder.WriteString(fmt.Sprintf("id=%v, ", m.ID))
builder.WriteString("message=")
builder.WriteString(m.Message)
builder.WriteString(", all_chat=")
builder.WriteString(", ")
builder.WriteString("all_chat=")
builder.WriteString(fmt.Sprintf("%v", m.AllChat))
builder.WriteString(", tick=")
builder.WriteString(", ")
builder.WriteString("tick=")
builder.WriteString(fmt.Sprintf("%v", m.Tick))
builder.WriteByte(')')
return builder.String()