MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetReferenceCount

Method SetReferenceCount

ent/entity_update.go:119–123  ·  view source on GitHub ↗

SetReferenceCount sets the "reference_count" field.

(i int)

Source from the content-addressed store, hash-verified

117
118// SetReferenceCount sets the "reference_count" field.
119func (eu *EntityUpdate) SetReferenceCount(i int) *EntityUpdate {
120 eu.mutation.ResetReferenceCount()
121 eu.mutation.SetReferenceCount(i)
122 return eu
123}
124
125// SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.
126func (eu *EntityUpdate) SetNillableReferenceCount(i *int) *EntityUpdate {

Callers 2

SetReferenceCountMethod · 0.45

Calls 1

ResetReferenceCountMethod · 0.80

Tested by

no test coverage detected