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

Method SaveX

ent/entity_update.go:789–795  ·  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

787
788// SaveX is like Save, but panics if an error occurs.
789func (euo *EntityUpdateOne) SaveX(ctx context.Context) *Entity {
790 node, err := euo.Save(ctx)
791 if err != nil {
792 panic(err)
793 }
794 return node
795}
796
797// Exec executes the query on the entity.
798func (euo *EntityUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected