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

Method SaveX

pkg/database/ent/machine_create.go:252–258  ·  view source on GitHub ↗

SaveX calls Save and panics if Save returns an error.

(ctx context.Context)

Source from the content-addressed store, hash-verified

250
251// SaveX calls Save and panics if Save returns an error.
252func (_c *MachineCreate) SaveX(ctx context.Context) *Machine {
253 v, err := _c.Save(ctx)
254 if err != nil {
255 panic(err)
256 }
257 return v
258}
259
260// Exec executes the query.
261func (_c *MachineCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected