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

Method ExecX

ent/user_update.go:1582–1586  ·  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

1580
1581// ExecX is like Exec, but panics if an error occurs.
1582func (uuo *UserUpdateOne) ExecX(ctx context.Context) {
1583 if err := uuo.Exec(ctx); err != nil {
1584 panic(err)
1585 }
1586}
1587
1588// defaults sets the default values of the builder before save.
1589func (uuo *UserUpdateOne) defaults() error {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected