QueryResults chains the current query on the "results" edge.
()
| 66 | |
| 67 | // QueryResults chains the current query on the "results" edge. |
| 68 | func (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. |
nothing calls this directly
no test coverage detected