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

Method Exec

pkg/database/ent/machine_create.go:261–264  ·  view source on GitHub ↗

Exec executes the query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

259
260// Exec executes the query.
261func (_c *MachineCreate) Exec(ctx context.Context) error {
262 _, err := _c.Save(ctx)
263 return err
264}
265
266// ExecX is like Exec, but panics if an error occurs.
267func (_c *MachineCreate) ExecX(ctx context.Context) {

Callers 5

ExecXMethod · 0.95
ExecMethod · 0.45
ExecXMethod · 0.45
ExecMethod · 0.45
ExecXMethod · 0.45

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected