MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / Count

Method Count

ent/gitcommit_query.go:230–236  ·  view source on GitHub ↗

Count returns the count of the given query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

228
229// Count returns the count of the given query.
230func (gcq *GitCommitQuery) Count(ctx context.Context) (int, error) {
231 ctx = setContextOp(ctx, gcq.ctx, ent.OpQueryCount)
232 if err := gcq.prepareQuery(ctx); err != nil {
233 return 0, err
234 }
235 return withInterceptors[int](ctx, gcq, querierCount[*GitCommitQuery](), gcq.inters)
236}
237
238// CountX is like Count, but panics if an error occurs.
239func (gcq *GitCommitQuery) CountX(ctx context.Context) int {

Callers 1

CountXMethod · 0.95

Calls 2

prepareQueryMethod · 0.95
setContextOpFunction · 0.85

Tested by

no test coverage detected