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

Method ExecX

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

761
762// ExecX is like Exec, but panics if an error occurs.
763func (tcb *TaskCreateBulk) ExecX(ctx context.Context) {
764 if err := tcb.Exec(ctx); err != nil {
765 panic(err)
766 }
767}
768
769// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
770// of the `INSERT` statement. For example:

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected