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

Method AllX

ent/metadata_query.go:195–201  ·  view source on GitHub ↗

AllX is like All, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

193
194// AllX is like All, but panics if an error occurs.
195func (mq *MetadataQuery) AllX(ctx context.Context) []*Metadata {
196 nodes, err := mq.All(ctx)
197 if err != nil {
198 panic(err)
199 }
200 return nodes
201}
202
203// IDs executes the query and returns a list of Metadata IDs.
204func (mq *MetadataQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected