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

Method SaveX

ent/share_update.go:245–251  ·  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

243
244// SaveX is like Save, but panics if an error occurs.
245func (su *ShareUpdate) SaveX(ctx context.Context) int {
246 affected, err := su.Save(ctx)
247 if err != nil {
248 panic(err)
249 }
250 return affected
251}
252
253// Exec executes the query.
254func (su *ShareUpdate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected