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

Method IDsX

ent/share_query.go:241–247  ·  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

239
240// IDsX is like IDs, but panics if an error occurs.
241func (sq *ShareQuery) IDsX(ctx context.Context) []int {
242 ids, err := sq.IDs(ctx)
243 if err != nil {
244 panic(err)
245 }
246 return ids
247}
248
249// Count returns the count of the given query.
250func (sq *ShareQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected