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