MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetStorageFile

Method SetStorageFile

ent/nodeversion_update.go:649–651  ·  view source on GitHub ↗

SetStorageFile sets the "storage_file" edge to the StorageFile entity.

(s *StorageFile)

Source from the content-addressed store, hash-verified

647
648// SetStorageFile sets the "storage_file" edge to the StorageFile entity.
649func (nvuo *NodeVersionUpdateOne) SetStorageFile(s *StorageFile) *NodeVersionUpdateOne {
650 return nvuo.SetStorageFileID(s.ID)
651}
652
653// AddComfyNodeIDs adds the "comfy_nodes" edge to the ComfyNode entity by IDs.
654func (nvuo *NodeVersionUpdateOne) AddComfyNodeIDs(ids ...uuid.UUID) *NodeVersionUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStorageFileIDMethod · 0.95

Tested by

no test coverage detected