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

Method AddMetadata

ent/file_update.go:1118–1124  ·  view source on GitHub ↗

AddMetadata adds the "metadata" edges to the Metadata entity.

(m ...*Metadata)

Source from the content-addressed store, hash-verified

1116
1117// AddMetadata adds the "metadata" edges to the Metadata entity.
1118func (fuo *FileUpdateOne) AddMetadata(m ...*Metadata) *FileUpdateOne {
1119 ids := make([]int, len(m))
1120 for i := range m {
1121 ids[i] = m[i].ID
1122 }
1123 return fuo.AddMetadatumIDs(ids...)
1124}
1125
1126// AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
1127func (fuo *FileUpdateOne) AddEntityIDs(ids ...int) *FileUpdateOne {

Callers

nothing calls this directly

Calls 1

AddMetadatumIDsMethod · 0.95

Tested by

no test coverage detected