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

Method RemovedIDs

ent/mutation.go:8149–8159  ·  view source on GitHub ↗

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

(name string)

Source from the content-addressed store, hash-verified

8147// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with
8148// the given name in this mutation.
8149func (m *NodeMutation) RemovedIDs(name string) []ent.Value {
8150 switch name {
8151 case node.EdgeStoragePolicy:
8152 ids := make([]ent.Value, 0, len(m.removedstorage_policy))
8153 for id := range m.removedstorage_policy {
8154 ids = append(ids, id)
8155 }
8156 return ids
8157 }
8158 return nil
8159}
8160
8161// ClearedEdges returns all edge names that were cleared in this mutation.
8162func (m *NodeMutation) ClearedEdges() []string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected