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

Method Save

ent/gitcommit_update.go:212–215  ·  view source on GitHub ↗

Save executes the query and returns the number of nodes affected by the update operation.

(ctx context.Context)

Source from the content-addressed store, hash-verified

210
211// Save executes the query and returns the number of nodes affected by the update operation.
212func (gcu *GitCommitUpdate) Save(ctx context.Context) (int, error) {
213 gcu.defaults()
214 return withHooks(ctx, gcu.sqlSave, gcu.mutation, gcu.hooks)
215}
216
217// SaveX is like Save, but panics if an error occurs.
218func (gcu *GitCommitUpdate) SaveX(ctx context.Context) int {

Callers 2

SaveXMethod · 0.95
ExecMethod · 0.95

Calls 2

defaultsMethod · 0.95
withHooksFunction · 0.85

Tested by

no test coverage detected