MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / SaveX

Method SaveX

app/controlplane/pkg/data/ent/user_create.go:681–687  ·  view source on GitHub ↗

SaveX is like Save, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

679
680// SaveX is like Save, but panics if an error occurs.
681func (_c *UserCreateBulk) SaveX(ctx context.Context) []*User {
682 v, err := _c.Save(ctx)
683 if err != nil {
684 panic(err)
685 }
686 return v
687}
688
689// Exec executes the query.
690func (_c *UserCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected