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

Method ExecX

ent/metadata_create.go:649–653  ·  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

647
648// ExecX is like Exec, but panics if an error occurs.
649func (mcb *MetadataCreateBulk) ExecX(ctx context.Context) {
650 if err := mcb.Exec(ctx); err != nil {
651 panic(err)
652 }
653}
654
655// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
656// of the `INSERT` statement. For example:

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected