MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AllX

Method AllX

ent/user_query.go:388–394  ·  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

386
387// AllX is like All, but panics if an error occurs.
388func (uq *UserQuery) AllX(ctx context.Context) []*User {
389 nodes, err := uq.All(ctx)
390 if err != nil {
391 panic(err)
392 }
393 return nodes
394}
395
396// IDs executes the query and returns a list of User IDs.
397func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected