MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / IDs

Method IDs

app/controlplane/pkg/data/ent/user_query.go:233–242  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

231
232// IDs executes the query and returns a list of User IDs.
233func (_q *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) {
234 if _q.ctx.Unique == nil && _q.path != nil {
235 _q.Unique(true)
236 }
237 ctx = setContextOp(ctx, _q.ctx, ent.OpQueryIDs)
238 if err = _q.Select(user.FieldID).Scan(ctx, &ids); err != nil {
239 return nil, err
240 }
241 return ids, nil
242}
243
244// IDsX is like IDs, but panics if an error occurs.
245func (_q *UserQuery) 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