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

Method OnlyIDX

ent/gitcommit_query.go:181–187  ·  view source on GitHub ↗

OnlyIDX is like OnlyID, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

179
180// OnlyIDX is like OnlyID, but panics if an error occurs.
181func (gcq *GitCommitQuery) OnlyIDX(ctx context.Context) uuid.UUID {
182 id, err := gcq.OnlyID(ctx)
183 if err != nil {
184 panic(err)
185 }
186 return id
187}
188
189// All executes the query and returns a list of GitCommits.
190func (gcq *GitCommitQuery) All(ctx context.Context) ([]*GitCommit, error) {

Callers

nothing calls this directly

Calls 1

OnlyIDMethod · 0.95

Tested by

no test coverage detected