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

Method IDsX

pkg/database/ent/alert_query.go:291–297  ·  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

289
290// IDsX is like IDs, but panics if an error occurs.
291func (_q *AlertQuery) IDsX(ctx context.Context) []int {
292 ids, err := _q.IDs(ctx)
293 if err != nil {
294 panic(err)
295 }
296 return ids
297}
298
299// Count returns the count of the given query.
300func (_q *AlertQuery) Count(ctx context.Context) (int, error) {

Callers

nothing calls this directly

Calls 1

IDsMethod · 0.95

Tested by

no test coverage detected