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

Method SaveX

app/controlplane/pkg/data/ent/group_update.go:196–202  ·  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

194
195// SaveX is like Save, but panics if an error occurs.
196func (_u *GroupUpdate) SaveX(ctx context.Context) int {
197 affected, err := _u.Save(ctx)
198 if err != nil {
199 panic(err)
200 }
201 return affected
202}
203
204// Exec executes the query.
205func (_u *GroupUpdate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected