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

Method SaveX

ent/task_update.go:172–178  ·  view source on GitHub ↗

SaveX is like Save, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

170
171// SaveX is like Save, but panics if an error occurs.
172func (tu *TaskUpdate) SaveX(ctx context.Context) int {
173 affected, err := tu.Save(ctx)
174 if err != nil {
175 panic(err)
176 }
177 return affected
178}
179
180// Exec executes the query.
181func (tu *TaskUpdate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected