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

Method SetCounter

bench/ent/mutation.go:385–388  ·  view source on GitHub ↗

SetCounter sets the "counter" field.

(i int64)

Source from the content-addressed store, hash-verified

383
384// SetCounter sets the "counter" field.
385func (m *ModelMutation) SetCounter(i int64) {
386 m.counter = &i
387 m.addcounter = nil
388}
389
390// Counter returns the value of the "counter" field in the mutation.
391func (m *ModelMutation) Counter() (r int64, 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