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

Method Count

ent/nodeversion_query.go:279–285  ·  view source on GitHub ↗

Count returns the count of the given query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

277
278// Count returns the count of the given query.
279func (nvq *NodeVersionQuery) Count(ctx context.Context) (int, error) {
280 ctx = setContextOp(ctx, nvq.ctx, ent.OpQueryCount)
281 if err := nvq.prepareQuery(ctx); err != nil {
282 return 0, err
283 }
284 return withInterceptors[int](ctx, nvq, querierCount[*NodeVersionQuery](), nvq.inters)
285}
286
287// CountX is like Count, but panics if an error occurs.
288func (nvq *NodeVersionQuery) CountX(ctx context.Context) int {

Callers 1

CountXMethod · 0.95

Calls 2

prepareQueryMethod · 0.95
setContextOpFunction · 0.85

Tested by

no test coverage detected