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

Method defaults

ent/gitcommit_update.go:240–245  ·  view source on GitHub ↗

defaults sets the default values of the builder before save.

()

Source from the content-addressed store, hash-verified

238
239// defaults sets the default values of the builder before save.
240func (gcu *GitCommitUpdate) defaults() {
241 if _, ok := gcu.mutation.UpdateTime(); !ok {
242 v := gitcommit.UpdateDefaultUpdateTime()
243 gcu.mutation.SetUpdateTime(v)
244 }
245}
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 {

Callers 1

SaveMethod · 0.95

Calls 2

UpdateTimeMethod · 0.45
SetUpdateTimeMethod · 0.45

Tested by

no test coverage detected