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

Method SetNillableReferenceCount

ent/entity_update.go:605–610  ·  view source on GitHub ↗

SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

603
604// SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.
605func (euo *EntityUpdateOne) SetNillableReferenceCount(i *int) *EntityUpdateOne {
606 if i != nil {
607 euo.SetReferenceCount(*i)
608 }
609 return euo
610}
611
612// AddReferenceCount adds i to the "reference_count" field.
613func (euo *EntityUpdateOne) AddReferenceCount(i int) *EntityUpdateOne {

Callers

nothing calls this directly

Calls 1

SetReferenceCountMethod · 0.95

Tested by

no test coverage detected