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

Method AddReferenceCount

ent/mutation.go:2146–2152  ·  view source on GitHub ↗

AddReferenceCount adds i to the "reference_count" field.

(i int)

Source from the content-addressed store, hash-verified

2144
2145// AddReferenceCount adds i to the "reference_count" field.
2146func (m *EntityMutation) AddReferenceCount(i int) {
2147 if m.addreference_count != nil {
2148 *m.addreference_count += i
2149 } else {
2150 m.addreference_count = &i
2151 }
2152}
2153
2154// AddedReferenceCount returns the value that was added to the "reference_count" field in this mutation.
2155func (m *EntityMutation) AddedReferenceCount() (r int, exists bool) {

Callers 6

AddFieldMethod · 0.95
insertEntityMethod · 0.45
DeleteMethod · 0.45
CopyMethod · 0.45
UnlinkEntityMethod · 0.45
RemoveStaleEntitiesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected