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

Method QueryResults

ent/gitcommit_query.go:68–87  ·  view source on GitHub ↗

QueryResults chains the current query on the "results" edge.

()

Source from the content-addressed store, hash-verified

66
67// QueryResults chains the current query on the "results" edge.
68func (gcq *GitCommitQuery) QueryResults() *CIWorkflowResultQuery {
69 query := (&CIWorkflowResultClient{config: gcq.config}).Query()
70 query.path = func(ctx context.Context) (fromU *sql.Selector, err error) {
71 if err := gcq.prepareQuery(ctx); err != nil {
72 return nil, err
73 }
74 selector := gcq.sqlQuery(ctx)
75 if err := selector.Err(); err != nil {
76 return nil, err
77 }
78 step := sqlgraph.NewStep(
79 sqlgraph.From(gitcommit.Table, gitcommit.FieldID, selector),
80 sqlgraph.To(ciworkflowresult.Table, ciworkflowresult.FieldID),
81 sqlgraph.Edge(sqlgraph.O2M, false, gitcommit.ResultsTable, gitcommit.ResultsColumn),
82 )
83 fromU = sqlgraph.SetNeighbors(gcq.driver.Dialect(), step)
84 return fromU, nil
85 }
86 return query
87}
88
89// First returns the first GitCommit entity from the query.
90// Returns a *NotFoundError when no GitCommit was found.

Callers

nothing calls this directly

Calls 4

prepareQueryMethod · 0.95
sqlQueryMethod · 0.95
DialectMethod · 0.80
QueryMethod · 0.45

Tested by

no test coverage detected