MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / IDsX

Method IDsX

pkg/database/ent/machine_query.go:218–224  ·  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

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

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected