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

Method IDsX

ent/storagepolicy_query.go:289–295  ·  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

287
288// IDsX is like IDs, but panics if an error occurs.
289func (spq *StoragePolicyQuery) IDsX(ctx context.Context) []int {
290 ids, err := spq.IDs(ctx)
291 if err != nil {
292 panic(err)
293 }
294 return ids
295}
296
297// Count returns the count of the given query.
298func (spq *StoragePolicyQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected