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

Method All

ent/group_query.go:210–217  ·  view source on GitHub ↗

All executes the query and returns a list of Groups.

(ctx context.Context)

Source from the content-addressed store, hash-verified

208
209// All executes the query and returns a list of Groups.
210func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error) {
211 ctx = setContextOp(ctx, gq.ctx, "All")
212 if err := gq.prepareQuery(ctx); err != nil {
213 return nil, err
214 }
215 qr := querierAll[[]*Group, *GroupQuery]()
216 return withInterceptors[[]*Group](ctx, gq, qr, gq.inters)
217}
218
219// AllX is like All, but panics if an error occurs.
220func (gq *GroupQuery) AllX(ctx context.Context) []*Group {

Callers 5

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45
loadUsersMethod · 0.45
loadStoragePoliciesMethod · 0.45

Calls 4

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

Tested by

no test coverage detected