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

Method ExecX

ent/share_update.go:652–656  ·  view source on GitHub ↗

ExecX is like Exec, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

650
651// ExecX is like Exec, but panics if an error occurs.
652func (suo *ShareUpdateOne) ExecX(ctx context.Context) {
653 if err := suo.Exec(ctx); err != nil {
654 panic(err)
655 }
656}
657
658// defaults sets the default values of the builder before save.
659func (suo *ShareUpdateOne) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected