updated deps & goent
This commit is contained in:
@@ -253,7 +253,7 @@ func (mpq *MatchPlayerQuery) FirstIDX(ctx context.Context) int {
|
||||
}
|
||||
|
||||
// Only returns a single MatchPlayer entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one MatchPlayer entity is not found.
|
||||
// Returns a *NotSingularError when more than one MatchPlayer entity is found.
|
||||
// Returns a *NotFoundError when no MatchPlayer entities are found.
|
||||
func (mpq *MatchPlayerQuery) Only(ctx context.Context) (*MatchPlayer, error) {
|
||||
nodes, err := mpq.Limit(2).All(ctx)
|
||||
@@ -280,7 +280,7 @@ func (mpq *MatchPlayerQuery) OnlyX(ctx context.Context) *MatchPlayer {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only MatchPlayer ID in the query.
|
||||
// Returns a *NotSingularError when exactly one MatchPlayer ID is not found.
|
||||
// Returns a *NotSingularError when more than one MatchPlayer ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (mpq *MatchPlayerQuery) OnlyID(ctx context.Context) (id int, err error) {
|
||||
var ids []int
|
||||
@@ -395,8 +395,9 @@ func (mpq *MatchPlayerQuery) Clone() *MatchPlayerQuery {
|
||||
withSpray: mpq.withSpray.Clone(),
|
||||
withMessages: mpq.withMessages.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: mpq.sql.Clone(),
|
||||
path: mpq.path,
|
||||
sql: mpq.sql.Clone(),
|
||||
path: mpq.path,
|
||||
unique: mpq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user