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

Method All

ent/setting_query.go:161–168  ·  view source on GitHub ↗

All executes the query and returns a list of Settings.

(ctx context.Context)

Source from the content-addressed store, hash-verified

159
160// All executes the query and returns a list of Settings.
161func (sq *SettingQuery) All(ctx context.Context) ([]*Setting, error) {
162 ctx = setContextOp(ctx, sq.ctx, "All")
163 if err := sq.prepareQuery(ctx); err != nil {
164 return nil, err
165 }
166 qr := querierAll[[]*Setting, *SettingQuery]()
167 return withInterceptors[[]*Setting](ctx, sq, qr, sq.inters)
168}
169
170// AllX is like All, but panics if an error occurs.
171func (sq *SettingQuery) AllX(ctx context.Context) []*Setting {

Callers 3

AllXMethod · 0.95
FirstMethod · 0.45
OnlyMethod · 0.45

Calls 4

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

Tested by

no test coverage detected