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

Method ExecX

ent/node_update.go:246–250  ·  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

244
245// ExecX is like Exec, but panics if an error occurs.
246func (nu *NodeUpdate) ExecX(ctx context.Context) {
247 if err := nu.Exec(ctx); err != nil {
248 panic(err)
249 }
250}
251
252// defaults sets the default values of the builder before save.
253func (nu *NodeUpdate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected