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

Method SetStorageFile

ent/nodeversion_update.go:200–202  ·  view source on GitHub ↗

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

(s *StorageFile)

Source from the content-addressed store, hash-verified

198
199// SetStorageFile sets the "storage_file" edge to the StorageFile entity.
200func (nvu *NodeVersionUpdate) SetStorageFile(s *StorageFile) *NodeVersionUpdate {
201 return nvu.SetStorageFileID(s.ID)
202}
203
204// AddComfyNodeIDs adds the "comfy_nodes" edge to the ComfyNode entity by IDs.
205func (nvu *NodeVersionUpdate) AddComfyNodeIDs(ids ...uuid.UUID) *NodeVersionUpdate {

Callers

nothing calls this directly

Calls 1

SetStorageFileIDMethod · 0.95

Tested by

no test coverage detected