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

Method SaveX

ent/task_update.go:455–461  ·  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

453
454// SaveX is like Save, but panics if an error occurs.
455func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task {
456 node, err := tuo.Save(ctx)
457 if err != nil {
458 panic(err)
459 }
460 return node
461}
462
463// Exec executes the query on the entity.
464func (tuo *TaskUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected