test seven
This commit is contained in:
@ -2629,6 +2629,29 @@ func HasMaWith(preds ...predicate.Ma) predicate.User {
|
||||
})
|
||||
}
|
||||
|
||||
// HasSev applies the HasEdge predicate on the "sev" edge.
|
||||
func HasSev() predicate.User {
|
||||
return predicate.User(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, SevTable, SevColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasSevWith applies the HasEdge predicate on the "sev" edge with a given conditions (other predicates).
|
||||
func HasSevWith(preds ...predicate.Sev) predicate.User {
|
||||
return predicate.User(func(s *sql.Selector) {
|
||||
step := newSevStep()
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.User) predicate.User {
|
||||
return predicate.User(func(s *sql.Selector) {
|
||||
|
Reference in New Issue
Block a user