HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
(preds ...predicate.Project)
| 849 | |
| 850 | // HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates). |
| 851 | func HasProjectWith(preds ...predicate.Project) predicate.Workflow { |
| 852 | return predicate.Workflow(func(s *sql.Selector) { |
| 853 | step := newProjectStep() |
| 854 | sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { |
| 855 | for _, p := range preds { |
| 856 | p(s) |
| 857 | } |
| 858 | }) |
| 859 | }) |
| 860 | } |
| 861 | |
| 862 | // HasLatestWorkflowRun applies the HasEdge predicate on the "latest_workflow_run" edge. |
| 863 | func HasLatestWorkflowRun() predicate.Workflow { |
no test coverage detected