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

Method SetReferenceCount

ent/entity_update.go:598–602  ·  view source on GitHub ↗

SetReferenceCount sets the "reference_count" field.

(i int)

Source from the content-addressed store, hash-verified

596
597// SetReferenceCount sets the "reference_count" field.
598func (euo *EntityUpdateOne) SetReferenceCount(i int) *EntityUpdateOne {
599 euo.mutation.ResetReferenceCount()
600 euo.mutation.SetReferenceCount(i)
601 return euo
602}
603
604// SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.
605func (euo *EntityUpdateOne) SetNillableReferenceCount(i *int) *EntityUpdateOne {

Callers 1

Calls 2

ResetReferenceCountMethod · 0.80
SetReferenceCountMethod · 0.45

Tested by

no test coverage detected