MCPcopy
hub / github.com/ent/ent / UpdateDefaultName

Method UpdateDefaultName

entc/gen/type.go:1115–1115  ·  view source on GitHub ↗

UpdateDefaultName returns the variable name of the update default value of this field.

()

Source from the content-addressed store, hash-verified

1113
1114// UpdateDefaultName returns the variable name of the update default value of this field.
1115func (f Field) UpdateDefaultName() string { return "Update" + f.DefaultName() }
1116
1117// DefaultValue returns the default value of the field. Invoked by the template.
1118func (f Field) DefaultValue() any { return f.def.DefaultValue }

Callers

nothing calls this directly

Implementers 15

Builderschema/index/index.go
assocBuilderschema/edge/edge.go
inverseBuilderschema/edge/edge.go
intBuilderschema/field/numeric.go
uintBuilderschema/field/numeric.go
int8Builderschema/field/numeric.go
int16Builderschema/field/numeric.go
int32Builderschema/field/numeric.go
int64Builderschema/field/numeric.go
uint8Builderschema/field/numeric.go
uint16Builderschema/field/numeric.go
uint32Builderschema/field/numeric.go

Calls 1

DefaultNameMethod · 0.95

Tested by

no test coverage detected