regenerated ent with new version

pull/109/head
Giovanni Harting 7 months ago
parent ed2a42318e
commit c2abe68483
  1. 9
      ent/dbpackage_query.go
  2. 4
      ent/runtime/runtime.go

@ -107,7 +107,7 @@ func (dpq *DbPackageQuery) FirstIDX(ctx context.Context) int {
}
// Only returns a single DbPackage entity found by the query, ensuring it only returns one.
// Returns a *NotSingularError when exactly one DbPackage entity is not found.
// Returns a *NotSingularError when more than one DbPackage entity is found.
// Returns a *NotFoundError when no DbPackage entities are found.
func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error) {
nodes, err := dpq.Limit(2).All(ctx)
@ -134,7 +134,7 @@ func (dpq *DbPackageQuery) OnlyX(ctx context.Context) *DbPackage {
}
// OnlyID is like Only, but returns the only DbPackage ID in the query.
// Returns a *NotSingularError when exactly one DbPackage ID is not found.
// Returns a *NotSingularError when more than one DbPackage ID is found.
// Returns a *NotFoundError when no entities are found.
func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error) {
var ids []int
@ -243,8 +243,9 @@ func (dpq *DbPackageQuery) Clone() *DbPackageQuery {
order: append([]OrderFunc{}, dpq.order...),
predicates: append([]predicate.DbPackage{}, dpq.predicates...),
// clone intermediate query.
sql: dpq.sql.Clone(),
path: dpq.path,
sql: dpq.sql.Clone(),
path: dpq.path,
unique: dpq.unique,
}
}

@ -5,6 +5,6 @@ package runtime
// The schema-stitching logic is generated in git.harting.dev/ALHP/ALHP.GO/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.
)

Loading…
Cancel
Save