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

Method SaveX

ent/setting_update.go:105–111  ·  view source on GitHub ↗

SaveX is like Save, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

103
104// SaveX is like Save, but panics if an error occurs.
105func (su *SettingUpdate) SaveX(ctx context.Context) int {
106 affected, err := su.Save(ctx)
107 if err != nil {
108 panic(err)
109 }
110 return affected
111}
112
113// Exec executes the query.
114func (su *SettingUpdate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected