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

Method ExecX

pkg/database/ent/machine_create.go:1173–1177  ·  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

1171
1172// ExecX is like Exec, but panics if an error occurs.
1173func (_c *MachineCreateBulk) ExecX(ctx context.Context) {
1174 if err := _c.Exec(ctx); err != nil {
1175 panic(err)
1176 }
1177}
1178
1179// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
1180// of the `INSERT` statement. For example:

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected