forked from ALHP/ALHP.GO
regen ent
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user