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

Method AddReferenceCount

ent/entity_create.go:751–755  ·  view source on GitHub ↗

AddReferenceCount adds v to the "reference_count" field.

(v int)

Source from the content-addressed store, hash-verified

749
750// AddReferenceCount adds v to the "reference_count" field.
751func (u *EntityUpsertOne) AddReferenceCount(v int) *EntityUpsertOne {
752 return u.Update(func(s *EntityUpsert) {
753 s.AddReferenceCount(v)
754 })
755}
756
757// UpdateReferenceCount sets the "reference_count" field to the value that was provided on create.
758func (u *EntityUpsertOne) UpdateReferenceCount() *EntityUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected