MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WhereP

Method WhereP

app/controlplane/pkg/data/ent/mutation.go:14713–14719  ·  view source on GitHub ↗

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))

Source from the content-addressed store, hash-verified

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.
14713func (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.
14722func (m *UserMutation) Op() Op {

Callers

nothing calls this directly

Calls 1

WhereMethod · 0.95

Tested by

no test coverage detected