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

Method IDsX

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

IDsX is like IDs, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

243
244// IDsX is like IDs, but panics if an error occurs.
245func (_q *UserQuery) IDsX(ctx context.Context) []uuid.UUID {
246 ids, err := _q.IDs(ctx)
247 if err != nil {
248 panic(err)
249 }
250 return ids
251}
252
253// Count returns the count of the given query.
254func (_q *UserQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected