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

Method Modify

ent/gitcommit_update.go:248–251  ·  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

246
247// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
248func (gcu *GitCommitUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *GitCommitUpdate {
249 gcu.modifiers = append(gcu.modifiers, modifiers...)
250 return gcu
251}
252
253func (gcu *GitCommitUpdate) sqlSave(ctx context.Context) (n int, err error) {
254 _spec := sqlgraph.NewUpdateSpec(gitcommit.Table, gitcommit.Columns, sqlgraph.NewFieldSpec(gitcommit.FieldID, field.TypeUUID))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected