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

Method ExecX

ent/setting_create.go:555–559  ·  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

553
554// ExecX is like Exec, but panics if an error occurs.
555func (scb *SettingCreateBulk) ExecX(ctx context.Context) {
556 if err := scb.Exec(ctx); err != nil {
557 panic(err)
558 }
559}
560
561// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
562// of the `INSERT` statement. For example:

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected