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

Method CountX

ent/nodeversion_query.go:288–294  ·  view source on GitHub ↗

CountX is like Count, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

286
287// CountX is like Count, but panics if an error occurs.
288func (nvq *NodeVersionQuery) CountX(ctx context.Context) int {
289 count, err := nvq.Count(ctx)
290 if err != nil {
291 panic(err)
292 }
293 return count
294}
295
296// Exist returns true if the query has elements in the graph.
297func (nvq *NodeVersionQuery) Exist(ctx context.Context) (bool, error) {

Callers

nothing calls this directly

Calls 1

CountMethod · 0.95

Tested by

no test coverage detected