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

Method Modify

ent/nodeversion_update.go:307–310  ·  view source on GitHub ↗

Modify adds a statement modifier for attaching custom logic to the UPDATE statement.

(modifiers ...func(u *sql.UpdateBuilder))

Source from the content-addressed store, hash-verified

305
306// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
307func (nvu *NodeVersionUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *NodeVersionUpdate {
308 nvu.modifiers = append(nvu.modifiers, modifiers...)
309 return nvu
310}
311
312func (nvu *NodeVersionUpdate) sqlSave(ctx context.Context) (n int, err error) {
313 if err := nvu.check(); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected