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

Method AllX

ent/setting_query.go:171–177  ·  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

169
170// AllX is like All, but panics if an error occurs.
171func (sq *SettingQuery) AllX(ctx context.Context) []*Setting {
172 nodes, err := sq.All(ctx)
173 if err != nil {
174 panic(err)
175 }
176 return nodes
177}
178
179// IDs executes the query and returns a list of Setting IDs.
180func (sq *SettingQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected