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

Method IDsX

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

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

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected