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

Method AddMetadata

ent/file_create.go:219–225  ·  view source on GitHub ↗

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

(m ...*Metadata)

Source from the content-addressed store, hash-verified

217
218// AddMetadata adds the "metadata" edges to the Metadata entity.
219func (fc *FileCreate) AddMetadata(m ...*Metadata) *FileCreate {
220 ids := make([]int, len(m))
221 for i := range m {
222 ids[i] = m[i].ID
223 }
224 return fc.AddMetadatumIDs(ids...)
225}
226
227// AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
228func (fc *FileCreate) AddEntityIDs(ids ...int) *FileCreate {

Callers

nothing calls this directly

Calls 1

AddMetadatumIDsMethod · 0.95

Tested by

no test coverage detected