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

Method All

ent/gitcommit_query.go:190–197  ·  view source on GitHub ↗

All executes the query and returns a list of GitCommits.

(ctx context.Context)

Source from the content-addressed store, hash-verified

188
189// All executes the query and returns a list of GitCommits.
190func (gcq *GitCommitQuery) All(ctx context.Context) ([]*GitCommit, error) {
191 ctx = setContextOp(ctx, gcq.ctx, ent.OpQueryAll)
192 if err := gcq.prepareQuery(ctx); err != nil {
193 return nil, err
194 }
195 qr := querierAll[[]*GitCommit, *GitCommitQuery]()
196 return withInterceptors[[]*GitCommit](ctx, gcq, qr, gcq.inters)
197}
198
199// AllX is like All, but panics if an error occurs.
200func (gcq *GitCommitQuery) AllX(ctx context.Context) []*GitCommit {

Callers 4

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadResultsMethod · 0.45

Calls 4

prepareQueryMethod · 0.95
setContextOpFunction · 0.85
querierAllFunction · 0.85
withInterceptorsFunction · 0.85

Tested by

no test coverage detected