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

Method AllX

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

218
219// AllX is like All, but panics if an error occurs.
220func (sq *ShareQuery) AllX(ctx context.Context) []*Share {
221 nodes, err := sq.All(ctx)
222 if err != nil {
223 panic(err)
224 }
225 return nodes
226}
227
228// IDs executes the query and returns a list of Share IDs.
229func (sq *ShareQuery) IDs(ctx context.Context) (ids []int, err error) {

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected