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

Method SaveX

ent/node_update.go:231–237  ·  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

229
230// SaveX is like Save, but panics if an error occurs.
231func (nu *NodeUpdate) SaveX(ctx context.Context) int {
232 affected, err := nu.Save(ctx)
233 if err != nil {
234 panic(err)
235 }
236 return affected
237}
238
239// Exec executes the query.
240func (nu *NodeUpdate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected