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

Method ExecX

ent/metadata_update.go:394–398  ·  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

392
393// ExecX is like Exec, but panics if an error occurs.
394func (muo *MetadataUpdateOne) ExecX(ctx context.Context) {
395 if err := muo.Exec(ctx); err != nil {
396 panic(err)
397 }
398}
399
400// defaults sets the default values of the builder before save.
401func (muo *MetadataUpdateOne) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected