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

Method All

app/controlplane/pkg/data/ent/referrer_query.go:236–243  ·  view source on GitHub ↗

All executes the query and returns a list of Referrers.

(ctx context.Context)

Source from the content-addressed store, hash-verified

234
235// All executes the query and returns a list of Referrers.
236func (_q *ReferrerQuery) All(ctx context.Context) ([]*Referrer, error) {
237 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll)
238 if err := _q.prepareQuery(ctx); err != nil {
239 return nil, err
240 }
241 qr := querierAll[[]*Referrer, *ReferrerQuery]()
242 return withInterceptors[[]*Referrer](ctx, _q, qr, _q.inters)
243}
244
245// AllX is like All, but panics if an error occurs.
246func (_q *ReferrerQuery) AllX(ctx context.Context) []*Referrer {

Callers 3

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45

Calls 4

prepareQueryMethod · 0.95
setContextOpFunction · 0.85
querierAllFunction · 0.85
withInterceptorsFunction · 0.85

Tested by

no test coverage detected