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

Method SaveX

ent/metadata_update.go:379–385  ·  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

377
378// SaveX is like Save, but panics if an error occurs.
379func (muo *MetadataUpdateOne) SaveX(ctx context.Context) *Metadata {
380 node, err := muo.Save(ctx)
381 if err != nil {
382 panic(err)
383 }
384 return node
385}
386
387// Exec executes the query on the entity.
388func (muo *MetadataUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected