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

Method CountX

ent/gitcommit_query.go:239–245  ·  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

237
238// CountX is like Count, but panics if an error occurs.
239func (gcq *GitCommitQuery) CountX(ctx context.Context) int {
240 count, err := gcq.Count(ctx)
241 if err != nil {
242 panic(err)
243 }
244 return count
245}
246
247// Exist returns true if the query has elements in the graph.
248func (gcq *GitCommitQuery) Exist(ctx context.Context) (bool, error) {

Callers

nothing calls this directly

Calls 1

CountMethod · 0.95

Tested by

no test coverage detected