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

Method SaveX

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

746
747// SaveX is like Save, but panics if an error occurs.
748func (tcb *TaskCreateBulk) SaveX(ctx context.Context) []*Task {
749 v, err := tcb.Save(ctx)
750 if err != nil {
751 panic(err)
752 }
753 return v
754}
755
756// Exec executes the query.
757func (tcb *TaskCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected