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

Method IDsX

ent/user_query.go:409–415  ·  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

407
408// IDsX is like IDs, but panics if an error occurs.
409func (uq *UserQuery) IDsX(ctx context.Context) []int {
410 ids, err := uq.IDs(ctx)
411 if err != nil {
412 panic(err)
413 }
414 return ids
415}
416
417// Count returns the count of the given query.
418func (uq *UserQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected