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

Method SetTitle

bench/ent/mutation.go:185–187  ·  view source on GitHub ↗

SetTitle sets the "title" field.

(s string)

Source from the content-addressed store, hash-verified

183
184// SetTitle sets the "title" field.
185func (m *ModelMutation) SetTitle(s string) {
186 m.title = &s
187}
188
189// Title returns the value of the "title" field in the mutation.
190func (m *ModelMutation) Title() (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