WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
(ps ...func(*sql.Selector))
| 14711 | // WhereP appends storage-level predicates to the UserMutation builder. Using this method, |
| 14712 | // users can use type-assertion to append predicates that do not depend on any generated package. |
| 14713 | func (m *UserMutation) WhereP(ps ...func(*sql.Selector)) { |
| 14714 | p := make([]predicate.User, len(ps)) |
| 14715 | for i := range ps { |
| 14716 | p[i] = ps[i] |
| 14717 | } |
| 14718 | m.Where(p...) |
| 14719 | } |
| 14720 | |
| 14721 | // Op returns the operation name. |
| 14722 | func (m *UserMutation) Op() Op { |