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

Method Exec

pkg/database/ent/machine_create.go:1057–1062  ·  view source on GitHub ↗

Exec executes the query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1055
1056// Exec executes the query.
1057func (u *MachineUpsertOne) Exec(ctx context.Context) error {
1058 if len(u.create.conflict) == 0 {
1059 return errors.New("ent: missing options for MachineCreate.OnConflict")
1060 }
1061 return u.create.Exec(ctx)
1062}
1063
1064// ExecX is like Exec, but panics if an error occurs.
1065func (u *MachineUpsertOne) ExecX(ctx context.Context) {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.45

Tested by

no test coverage detected