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

Method AllX

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

AllX is like All, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

222
223// AllX is like All, but panics if an error occurs.
224func (_q *UserQuery) AllX(ctx context.Context) []*User {
225 nodes, err := _q.All(ctx)
226 if err != nil {
227 panic(err)
228 }
229 return nodes
230}
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) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected