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

Method ExecX

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

329
330// ExecX is like Exec, but panics if an error occurs.
331func (uc *UserCreate) ExecX(ctx context.Context) {
332 if err := uc.Exec(ctx); err != nil {
333 panic(err)
334 }
335}
336
337// defaults sets the default values of the builder before save.
338func (uc *UserCreate) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected