updated deps & goent
This commit is contained in:
@@ -157,7 +157,7 @@ func (mq *MatchQuery) FirstIDX(ctx context.Context) uint64 {
|
||||
}
|
||||
|
||||
// Only returns a single Match entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one Match entity is not found.
|
||||
// Returns a *NotSingularError when more than one Match entity is found.
|
||||
// Returns a *NotFoundError when no Match entities are found.
|
||||
func (mq *MatchQuery) Only(ctx context.Context) (*Match, error) {
|
||||
nodes, err := mq.Limit(2).All(ctx)
|
||||
@@ -184,7 +184,7 @@ func (mq *MatchQuery) OnlyX(ctx context.Context) *Match {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only Match ID in the query.
|
||||
// Returns a *NotSingularError when exactly one Match ID is not found.
|
||||
// Returns a *NotSingularError when more than one Match ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (mq *MatchQuery) OnlyID(ctx context.Context) (id uint64, err error) {
|
||||
var ids []uint64
|
||||
@@ -295,8 +295,9 @@ func (mq *MatchQuery) Clone() *MatchQuery {
|
||||
withStats: mq.withStats.Clone(),
|
||||
withPlayers: mq.withPlayers.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
unique: mq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -133,7 +133,7 @@ func (mq *MessagesQuery) FirstIDX(ctx context.Context) int {
|
||||
}
|
||||
|
||||
// Only returns a single Messages entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one Messages entity is not found.
|
||||
// Returns a *NotSingularError when more than one Messages entity is found.
|
||||
// Returns a *NotFoundError when no Messages entities are found.
|
||||
func (mq *MessagesQuery) Only(ctx context.Context) (*Messages, error) {
|
||||
nodes, err := mq.Limit(2).All(ctx)
|
||||
@@ -160,7 +160,7 @@ func (mq *MessagesQuery) OnlyX(ctx context.Context) *Messages {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only Messages ID in the query.
|
||||
// Returns a *NotSingularError when exactly one Messages ID is not found.
|
||||
// Returns a *NotSingularError when more than one Messages ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (mq *MessagesQuery) OnlyID(ctx context.Context) (id int, err error) {
|
||||
var ids []int
|
||||
@@ -270,8 +270,9 @@ func (mq *MessagesQuery) Clone() *MessagesQuery {
|
||||
predicates: append([]predicate.Messages{}, mq.predicates...),
|
||||
withMatchPlayer: mq.withMatchPlayer.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
unique: mq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -133,7 +133,7 @@ func (rsq *RoundStatsQuery) FirstIDX(ctx context.Context) int {
|
||||
}
|
||||
|
||||
// Only returns a single RoundStats entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one RoundStats entity is not found.
|
||||
// Returns a *NotSingularError when more than one RoundStats entity is found.
|
||||
// Returns a *NotFoundError when no RoundStats entities are found.
|
||||
func (rsq *RoundStatsQuery) Only(ctx context.Context) (*RoundStats, error) {
|
||||
nodes, err := rsq.Limit(2).All(ctx)
|
||||
@@ -160,7 +160,7 @@ func (rsq *RoundStatsQuery) OnlyX(ctx context.Context) *RoundStats {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only RoundStats ID in the query.
|
||||
// Returns a *NotSingularError when exactly one RoundStats ID is not found.
|
||||
// Returns a *NotSingularError when more than one RoundStats ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (rsq *RoundStatsQuery) OnlyID(ctx context.Context) (id int, err error) {
|
||||
var ids []int
|
||||
@@ -270,8 +270,9 @@ func (rsq *RoundStatsQuery) Clone() *RoundStatsQuery {
|
||||
predicates: append([]predicate.RoundStats{}, rsq.predicates...),
|
||||
withMatchPlayer: rsq.withMatchPlayer.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: rsq.sql.Clone(),
|
||||
path: rsq.path,
|
||||
sql: rsq.sql.Clone(),
|
||||
path: rsq.path,
|
||||
unique: rsq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,6 +5,6 @@ package runtime
|
||||
// The schema-stitching logic is generated in git.harting.dev/csgowtf/csgowtfd/ent/runtime.go
|
||||
|
||||
const (
|
||||
Version = "v0.10.0" // Version of ent codegen.
|
||||
Sum = "h1:9cBomE1fh+WX34DPYQL7tDNAIvhKa3tXvwxuLyhYCMo=" // Sum of ent codegen.
|
||||
Version = "v0.10.1" // Version of ent codegen.
|
||||
Sum = "h1:dM5h4Zk6yHGIgw4dCqVzGw3nWgpGYJiV4/kyHEF6PFo=" // Sum of ent codegen.
|
||||
)
|
||||
|
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -133,7 +133,7 @@ func (wq *WeaponQuery) FirstIDX(ctx context.Context) int {
|
||||
}
|
||||
|
||||
// Only returns a single Weapon entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one Weapon entity is not found.
|
||||
// Returns a *NotSingularError when more than one Weapon entity is found.
|
||||
// Returns a *NotFoundError when no Weapon entities are found.
|
||||
func (wq *WeaponQuery) Only(ctx context.Context) (*Weapon, error) {
|
||||
nodes, err := wq.Limit(2).All(ctx)
|
||||
@@ -160,7 +160,7 @@ func (wq *WeaponQuery) OnlyX(ctx context.Context) *Weapon {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only Weapon ID in the query.
|
||||
// Returns a *NotSingularError when exactly one Weapon ID is not found.
|
||||
// Returns a *NotSingularError when more than one Weapon ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (wq *WeaponQuery) OnlyID(ctx context.Context) (id int, err error) {
|
||||
var ids []int
|
||||
@@ -270,8 +270,9 @@ func (wq *WeaponQuery) Clone() *WeaponQuery {
|
||||
predicates: append([]predicate.Weapon{}, wq.predicates...),
|
||||
withStat: wq.withStat.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: wq.sql.Clone(),
|
||||
path: wq.path,
|
||||
sql: wq.sql.Clone(),
|
||||
path: wq.path,
|
||||
unique: wq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user