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

Method ExecX

ent/task_create.go:186–190  ·  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

184
185// ExecX is like Exec, but panics if an error occurs.
186func (tc *TaskCreate) ExecX(ctx context.Context) {
187 if err := tc.Exec(ctx); err != nil {
188 panic(err)
189 }
190}
191
192// defaults sets the default values of the builder before save.
193func (tc *TaskCreate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected