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

Method SaveX

ent/gitcommit_update.go:562–568  ·  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

560
561// SaveX is like Save, but panics if an error occurs.
562func (gcuo *GitCommitUpdateOne) SaveX(ctx context.Context) *GitCommit {
563 node, err := gcuo.Save(ctx)
564 if err != nil {
565 panic(err)
566 }
567 return node
568}
569
570// Exec executes the query on the entity.
571func (gcuo *GitCommitUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected