MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SaveX

Method SaveX

ent/share_update.go:637–643  ·  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

635
636// SaveX is like Save, but panics if an error occurs.
637func (suo *ShareUpdateOne) SaveX(ctx context.Context) *Share {
638 node, err := suo.Save(ctx)
639 if err != nil {
640 panic(err)
641 }
642 return node
643}
644
645// Exec executes the query on the entity.
646func (suo *ShareUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected