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

Method IDsX

ent/setting_query.go:192–198  ·  view source on GitHub ↗

IDsX is like IDs, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

190
191// IDsX is like IDs, but panics if an error occurs.
192func (sq *SettingQuery) IDsX(ctx context.Context) []int {
193 ids, err := sq.IDs(ctx)
194 if err != nil {
195 panic(err)
196 }
197 return ids
198}
199
200// Count returns the count of the given query.
201func (sq *SettingQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected