MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / Save

Method Save

ent/nodeversion_update.go:720–723  ·  view source on GitHub ↗

Save executes the query and returns the updated NodeVersion entity.

(ctx context.Context)

Source from the content-addressed store, hash-verified

718
719// Save executes the query and returns the updated NodeVersion entity.
720func (nvuo *NodeVersionUpdateOne) Save(ctx context.Context) (*NodeVersion, error) {
721 nvuo.defaults()
722 return withHooks(ctx, nvuo.sqlSave, nvuo.mutation, nvuo.hooks)
723}
724
725// SaveX is like Save, but panics if an error occurs.
726func (nvuo *NodeVersionUpdateOne) SaveX(ctx context.Context) *NodeVersion {

Callers 2

SaveXMethod · 0.95
ExecMethod · 0.95

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected