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

Method ExecX

ent/user_create.go:1215–1219  ·  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

1213
1214// ExecX is like Exec, but panics if an error occurs.
1215func (ucb *UserCreateBulk) ExecX(ctx context.Context) {
1216 if err := ucb.Exec(ctx); err != nil {
1217 panic(err)
1218 }
1219}
1220
1221// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
1222// of the `INSERT` statement. For example:

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected