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

Method IDsX

ent/entity_query.go:265–271  ·  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

263
264// IDsX is like IDs, but panics if an error occurs.
265func (eq *EntityQuery) IDsX(ctx context.Context) []int {
266 ids, err := eq.IDs(ctx)
267 if err != nil {
268 panic(err)
269 }
270 return ids
271}
272
273// Count returns the count of the given query.
274func (eq *EntityQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected