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

Method ExistX

pkg/database/ent/machine_query.go:258–264  ·  view source on GitHub ↗

ExistX is like Exist, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

256
257// ExistX is like Exist, but panics if an error occurs.
258func (_q *MachineQuery) ExistX(ctx context.Context) bool {
259 exist, err := _q.Exist(ctx)
260 if err != nil {
261 panic(err)
262 }
263 return exist
264}
265
266// Clone returns a duplicate of the MachineQuery builder, including all associated steps. It can be
267// used to prepare common query builders and use them differently after the clone is made.

Callers

nothing calls this directly

Calls 1

ExistMethod · 0.95

Tested by

no test coverage detected