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

Method SaveX

ent/task_create.go:171–177  ·  view source on GitHub ↗

SaveX calls Save and panics if Save returns an error.

(ctx context.Context)

Source from the content-addressed store, hash-verified

169
170// SaveX calls Save and panics if Save returns an error.
171func (tc *TaskCreate) SaveX(ctx context.Context) *Task {
172 v, err := tc.Save(ctx)
173 if err != nil {
174 panic(err)
175 }
176 return v
177}
178
179// Exec executes the query.
180func (tc *TaskCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected