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

Method ExecX

ent/entity_create.go:218–222  ·  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

216
217// ExecX is like Exec, but panics if an error occurs.
218func (ec *EntityCreate) ExecX(ctx context.Context) {
219 if err := ec.Exec(ctx); err != nil {
220 panic(err)
221 }
222}
223
224// defaults sets the default values of the builder before save.
225func (ec *EntityCreate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected