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

Method SaveX

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

609
610// SaveX is like Save, but panics if an error occurs.
611func (nuo *NodeUpdateOne) SaveX(ctx context.Context) *Node {
612 node, err := nuo.Save(ctx)
613 if err != nil {
614 panic(err)
615 }
616 return node
617}
618
619// Exec executes the query on the entity.
620func (nuo *NodeUpdateOne) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected