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

Function querierAll

app/controlplane/pkg/data/ent/ent.go:572–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570}
571
572func querierAll[V Value, Q interface {
573 sqlAll(context.Context, ...queryHook) (V, error)
574}]() Querier {
575 return QuerierFunc(func(ctx context.Context, q Query) (Value, error) {
576 query, ok := q.(Q)
577 if !ok {
578 return nil, fmt.Errorf("unexpected query type %T", q)
579 }
580 return query.sqlAll(ctx)
581 })
582}
583
584func querierCount[Q interface {
585 sqlCount(context.Context) (int, error)

Callers 15

AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85
AllMethod · 0.85

Calls 1

sqlAllMethod · 0.45

Tested by

no test coverage detected