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

Method SaveX

ent/setting_update.go:272–278  ·  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

270
271// SaveX is like Save, but panics if an error occurs.
272func (suo *SettingUpdateOne) SaveX(ctx context.Context) *Setting {
273 node, err := suo.Save(ctx)
274 if err != nil {
275 panic(err)
276 }
277 return node
278}
279
280// Exec executes the query on the entity.
281func (suo *SettingUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected