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

Method QueryStorageFile

ent/client.go:1228–1241  ·  view source on GitHub ↗

QueryStorageFile queries the storage_file edge of a NodeVersion.

(nv *NodeVersion)

Source from the content-addressed store, hash-verified

1226
1227// QueryStorageFile queries the storage_file edge of a NodeVersion.
1228func (c *NodeVersionClient) QueryStorageFile(nv *NodeVersion) *StorageFileQuery {
1229 query := (&StorageFileClient{config: c.config}).Query()
1230 query.path = func(context.Context) (fromV *sql.Selector, _ error) {
1231 id := nv.ID
1232 step := sqlgraph.NewStep(
1233 sqlgraph.From(nodeversion.Table, nodeversion.FieldID, id),
1234 sqlgraph.To(storagefile.Table, storagefile.FieldID),
1235 sqlgraph.Edge(sqlgraph.M2O, false, nodeversion.StorageFileTable, nodeversion.StorageFileColumn),
1236 )
1237 fromV = sqlgraph.Neighbors(nv.driver.Dialect(), step)
1238 return fromV, nil
1239 }
1240 return query
1241}
1242
1243// QueryComfyNodes queries the comfy_nodes edge of a NodeVersion.
1244func (c *NodeVersionClient) QueryComfyNodes(nv *NodeVersion) *ComfyNodeQuery {

Callers

nothing calls this directly

Calls 2

DialectMethod · 0.80
QueryMethod · 0.45

Tested by

no test coverage detected