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

Method All

ent/task_query.go:185–192  ·  view source on GitHub ↗

All executes the query and returns a list of Tasks.

(ctx context.Context)

Source from the content-addressed store, hash-verified

183
184// All executes the query and returns a list of Tasks.
185func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error) {
186 ctx = setContextOp(ctx, tq.ctx, "All")
187 if err := tq.prepareQuery(ctx); err != nil {
188 return nil, err
189 }
190 qr := querierAll[[]*Task, *TaskQuery]()
191 return withInterceptors[[]*Task](ctx, tq, qr, tq.inters)
192}
193
194// AllX is like All, but panics if an error occurs.
195func (tq *TaskQuery) AllX(ctx context.Context) []*Task {

Callers 4

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadUserMethod · 0.45

Calls 4

prepareQueryMethod · 0.95
setContextOpFunction · 0.85
querierAllFunction · 0.85
withInterceptorsFunction · 0.85

Tested by

no test coverage detected