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