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

Method Save

ent/nodeversion_create.go:220–223  ·  view source on GitHub ↗

Save creates the NodeVersion in the database.

(ctx context.Context)

Source from the content-addressed store, hash-verified

218
219// Save creates the NodeVersion in the database.
220func (nvc *NodeVersionCreate) Save(ctx context.Context) (*NodeVersion, error) {
221 nvc.defaults()
222 return withHooks(ctx, nvc.sqlSave, nvc.mutation, nvc.hooks)
223}
224
225// SaveX calls Save and panics if Save returns an error.
226func (nvc *NodeVersionCreate) SaveX(ctx context.Context) *NodeVersion {

Callers 3

SaveXMethod · 0.95
ExecMethod · 0.95
IDMethod · 0.45

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected