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

Method AllX

ent/node_query.go:196–202  ·  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

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

Callers

nothing calls this directly

Calls 1

AllMethod · 0.95

Tested by

no test coverage detected