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

Method IDs

ent/gitcommit_query.go:209–218  ·  view source on GitHub ↗

IDs executes the query and returns a list of GitCommit IDs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

207
208// IDs executes the query and returns a list of GitCommit IDs.
209func (gcq *GitCommitQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) {
210 if gcq.ctx.Unique == nil && gcq.path != nil {
211 gcq.Unique(true)
212 }
213 ctx = setContextOp(ctx, gcq.ctx, ent.OpQueryIDs)
214 if err = gcq.Select(gitcommit.FieldID).Scan(ctx, &ids); err != nil {
215 return nil, err
216 }
217 return ids, nil
218}
219
220// IDsX is like IDs, but panics if an error occurs.
221func (gcq *GitCommitQuery) IDsX(ctx context.Context) []uuid.UUID {

Callers 3

IDsXMethod · 0.95
FirstIDMethod · 0.45
OnlyIDMethod · 0.45

Calls 4

UniqueMethod · 0.95
SelectMethod · 0.95
setContextOpFunction · 0.85
ScanMethod · 0.45

Tested by

no test coverage detected