MCPcopy
hub / github.com/cloudreve/cloudreve / All

Method All

ent/node_query.go:186–193  ·  view source on GitHub ↗

All executes the query and returns a list of Nodes.

(ctx context.Context)

Source from the content-addressed store, hash-verified

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

Callers 15

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadStoragePolicyMethod · 0.45
masterkey.goFile · 0.45
UpdateMethod · 0.45
ListIndexableFilesMethod · 0.45
RemoveEntitiesByIDMethod · 0.45
StaleEntitiesMethod · 0.45
DeleteByUserMethod · 0.45
DeleteMethod · 0.45

Calls 4

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

Tested by

no test coverage detected