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

Method Count

app/controlplane/pkg/data/ent/user_query.go:254–260  ·  view source on GitHub ↗

Count returns the count of the given query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

252
253// Count returns the count of the given query.
254func (_q *UserQuery) Count(ctx context.Context) (int, error) {
255 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryCount)
256 if err := _q.prepareQuery(ctx); err != nil {
257 return 0, err
258 }
259 return withInterceptors[int](ctx, _q, querierCount[*UserQuery](), _q.inters)
260}
261
262// CountX is like Count, but panics if an error occurs.
263func (_q *UserQuery) CountX(ctx context.Context) int {

Callers 14

CountXMethod · 0.95
ListMethod · 0.45
ListMembersMethod · 0.45
ListMethod · 0.45
ListMembersMethod · 0.45
ListProjectsByGroupMethod · 0.45
FindByOrgMethod · 0.45
RunsTotalMethod · 0.45
DailyRunsCountMethod · 0.45

Calls 2

prepareQueryMethod · 0.95
setContextOpFunction · 0.85

Tested by

no test coverage detected