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

Method AllX

ent/task_query.go:195–201  ·  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

193
194// AllX is like All, but panics if an error occurs.
195func (tq *TaskQuery) AllX(ctx context.Context) []*Task {
196 nodes, err := tq.All(ctx)
197 if err != nil {
198 panic(err)
199 }
200 return nodes
201}
202
203// IDs executes the query and returns a list of Task IDs.
204func (tq *TaskQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected