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

Method AddFileIDs

ent/storagepolicy_update.go:989–992  ·  view source on GitHub ↗

AddFileIDs adds the "files" edge to the File entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

987
988// AddFileIDs adds the "files" edge to the File entity by IDs.
989func (spuo *StoragePolicyUpdateOne) AddFileIDs(ids ...int) *StoragePolicyUpdateOne {
990 spuo.mutation.AddFileIDs(ids...)
991 return spuo
992}
993
994// AddFiles adds the "files" edges to the File entity.
995func (spuo *StoragePolicyUpdateOne) AddFiles(f ...*File) *StoragePolicyUpdateOne {

Callers 1

AddFilesMethod · 0.95

Calls 1

AddFileIDsMethod · 0.45

Tested by

no test coverage detected