1
0
forked from ALHP/ALHP.GO

regen ent

This commit is contained in:
2023-01-16 11:34:35 +01:00
parent 1805baedc5
commit f60e8479bc
12 changed files with 575 additions and 1260 deletions

View File

@@ -13,6 +13,7 @@ import (
"git.harting.dev/ALHP/ALHP.GO/ent/predicate"
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
)
const (
@@ -1380,11 +1381,26 @@ func (m *DbPackageMutation) Where(ps ...predicate.DbPackage) {
m.predicates = append(m.predicates, ps...)
}
// WhereP appends storage-level predicates to the DbPackageMutation builder. Using this method,
// users can use type-assertion to append predicates that do not depend on any generated package.
func (m *DbPackageMutation) WhereP(ps ...func(*sql.Selector)) {
p := make([]predicate.DbPackage, len(ps))
for i := range ps {
p[i] = ps[i]
}
m.Where(p...)
}
// Op returns the operation name.
func (m *DbPackageMutation) Op() Op {
return m.op
}
// SetOp allows setting the mutation operation.
func (m *DbPackageMutation) SetOp(op Op) {
m.op = op
}
// Type returns the node type of this mutation (DbPackage).
func (m *DbPackageMutation) Type() string {
return m.typ