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

Method SaveX

ent/setting_create.go:101–107  ·  view source on GitHub ↗

SaveX calls Save and panics if Save returns an error.

(ctx context.Context)

Source from the content-addressed store, hash-verified

99
100// SaveX calls Save and panics if Save returns an error.
101func (sc *SettingCreate) SaveX(ctx context.Context) *Setting {
102 v, err := sc.Save(ctx)
103 if err != nil {
104 panic(err)
105 }
106 return v
107}
108
109// Exec executes the query.
110func (sc *SettingCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected