MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / IDsX

Method IDsX

ent/metadata_query.go:216–222  ·  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

214
215// IDsX is like IDs, but panics if an error occurs.
216func (mq *MetadataQuery) IDsX(ctx context.Context) []int {
217 ids, err := mq.IDs(ctx)
218 if err != nil {
219 panic(err)
220 }
221 return ids
222}
223
224// Count returns the count of the given query.
225func (mq *MetadataQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected