MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SaveX

Method SaveX

ent/gitcommit_create.go:169–175  ·  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

167
168// SaveX calls Save and panics if Save returns an error.
169func (gcc *GitCommitCreate) SaveX(ctx context.Context) *GitCommit {
170 v, err := gcc.Save(ctx)
171 if err != nil {
172 panic(err)
173 }
174 return v
175}
176
177// Exec executes the query.
178func (gcc *GitCommitCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected