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

Method ExecX

pkg/database/ent/machine_create.go:267–271  ·  view source on GitHub ↗

ExecX is like Exec, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

265
266// ExecX is like Exec, but panics if an error occurs.
267func (_c *MachineCreate) ExecX(ctx context.Context) {
268 if err := _c.Exec(ctx); err != nil {
269 panic(err)
270 }
271}
272
273// defaults sets the default values of the builder before save.
274func (_c *MachineCreate) defaults() {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected