MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / SetName

Method SetName

bench/ent/mutation.go:149–151  ·  view source on GitHub ↗

SetName sets the "name" field.

(s string)

Source from the content-addressed store, hash-verified

147
148// SetName sets the "name" field.
149func (m *ModelMutation) SetName(s string) {
150 m.name = &s
151}
152
153// Name returns the value of the "name" field in the mutation.
154func (m *ModelMutation) Name() (r string, exists bool) {

Callers 6

SetFieldMethod · 0.95
InsertMethod · 0.45
InsertMultiMethod · 0.45
UpdateMethod · 0.45
ReadMethod · 0.45
ReadSliceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected