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

Method ExecX

ent/metadata_create.go:134–138  ·  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

132
133// ExecX is like Exec, but panics if an error occurs.
134func (mc *MetadataCreate) ExecX(ctx context.Context) {
135 if err := mc.Exec(ctx); err != nil {
136 panic(err)
137 }
138}
139
140// defaults sets the default values of the builder before save.
141func (mc *MetadataCreate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected