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

Method Save

ent/node_update.go:603–608  ·  view source on GitHub ↗

Save executes the query and returns the updated Node entity.

(ctx context.Context)

Source from the content-addressed store, hash-verified

601
602// Save executes the query and returns the updated Node entity.
603func (nuo *NodeUpdateOne) Save(ctx context.Context) (*Node, error) {
604 if err := nuo.defaults(); err != nil {
605 return nil, err
606 }
607 return withHooks(ctx, nuo.sqlSave, nuo.mutation, nuo.hooks)
608}
609
610// SaveX is like Save, but panics if an error occurs.
611func (nuo *NodeUpdateOne) SaveX(ctx context.Context) *Node {

Callers 2

SaveXMethod · 0.95
ExecMethod · 0.95

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected