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

Method SaveX

app/controlplane/pkg/data/ent/user_create.go:161–167  ·  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

159
160// SaveX calls Save and panics if Save returns an error.
161func (_c *UserCreate) SaveX(ctx context.Context) *User {
162 v, err := _c.Save(ctx)
163 if err != nil {
164 panic(err)
165 }
166 return v
167}
168
169// Exec executes the query.
170func (_c *UserCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected