forked from ALHP/ALHP.GO
regenerated ent with new version
This commit is contained in:
@@ -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.
|
// 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.
|
// Returns a *NotFoundError when no DbPackage entities are found.
|
||||||
func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error) {
|
func (dpq *DbPackageQuery) Only(ctx context.Context) (*DbPackage, error) {
|
||||||
nodes, err := dpq.Limit(2).All(ctx)
|
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.
|
// 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.
|
// Returns a *NotFoundError when no entities are found.
|
||||||
func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error) {
|
func (dpq *DbPackageQuery) OnlyID(ctx context.Context) (id int, err error) {
|
||||||
var ids []int
|
var ids []int
|
||||||
@@ -245,6 +245,7 @@ func (dpq *DbPackageQuery) Clone() *DbPackageQuery {
|
|||||||
// clone intermediate query.
|
// clone intermediate query.
|
||||||
sql: dpq.sql.Clone(),
|
sql: dpq.sql.Clone(),
|
||||||
path: dpq.path,
|
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
|
// The schema-stitching logic is generated in git.harting.dev/ALHP/ALHP.GO/ent/runtime.go
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "v0.10.0" // Version of ent codegen.
|
Version = "v0.10.1" // Version of ent codegen.
|
||||||
Sum = "h1:9cBomE1fh+WX34DPYQL7tDNAIvhKa3tXvwxuLyhYCMo=" // Sum of ent codegen.
|
Sum = "h1:dM5h4Zk6yHGIgw4dCqVzGw3nWgpGYJiV4/kyHEF6PFo=" // Sum of ent codegen.
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user