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

Method FileIDs

ent/mutation.go:6793–6798  ·  view source on GitHub ↗

FileIDs returns the "file" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FileID instead. It exists only for internal usage by the builders.

()

Source from the content-addressed store, hash-verified

6791// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use
6792// FileID instead. It exists only for internal usage by the builders.
6793func (m *MetadataMutation) FileIDs() (ids []int) {
6794 if id := m.file; id != nil {
6795 ids = append(ids, *id)
6796 }
6797 return
6798}
6799
6800// ResetFile resets all changes to the "file" edge.
6801func (m *MetadataMutation) ResetFile() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected