MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / Exec

Method Exec

pkg/database/ent/alert_create.go:456–459  ·  view source on GitHub ↗

Exec executes the query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

454
455// Exec executes the query.
456func (_c *AlertCreate) Exec(ctx context.Context) error {
457 _, err := _c.Save(ctx)
458 return err
459}
460
461// ExecX is like Exec, but panics if an error occurs.
462func (_c *AlertCreate) 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