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

Method SaveX

ent/setting_create.go:540–546  ·  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

538
539// SaveX is like Save, but panics if an error occurs.
540func (scb *SettingCreateBulk) SaveX(ctx context.Context) []*Setting {
541 v, err := scb.Save(ctx)
542 if err != nil {
543 panic(err)
544 }
545 return v
546}
547
548// Exec executes the query.
549func (scb *SettingCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected