Debian Codegraph @

ent/attestationcollection/where.go

raw
1 // Code generated by ent, DO NOT EDIT.
2
3 package attestationcollection
4
5 import (
6 "entgo.io/ent/dialect/sql"
7 "entgo.io/ent/dialect/sql/sqlgraph"
8 "github.com/google/uuid"
9 "github.com/in-toto/archivista/ent/predicate"
10 )
11
12 // ID filters vertices based on their ID field.
13 func ID(id uuid.UUID) predicate.AttestationCollection {
14 return predicate.AttestationCollection(sql.FieldEQ(FieldID, id))
15 }
16
17 // IDEQ applies the EQ predicate on the ID field.
18 func IDEQ(id uuid.UUID) predicate.AttestationCollection {
19 return predicate.AttestationCollection(sql.FieldEQ(FieldID, id))
20 }
21
22 // IDNEQ applies the NEQ predicate on the ID field.
23 func IDNEQ(id uuid.UUID) predicate.AttestationCollection {
24 return predicate.AttestationCollection(sql.FieldNEQ(FieldID, id))
25 }
26
27 // IDIn applies the In predicate on the ID field.
28 func IDIn(ids ...uuid.UUID) predicate.AttestationCollection {
29 return predicate.AttestationCollection(sql.FieldIn(FieldID, ids...))
30 }
31
32 // IDNotIn applies the NotIn predicate on the ID field.
33 func IDNotIn(ids ...uuid.UUID) predicate.AttestationCollection {
34 return predicate.AttestationCollection(sql.FieldNotIn(FieldID, ids...))
35 }
36
37 // IDGT applies the GT predicate on the ID field.
38 func IDGT(id uuid.UUID) predicate.AttestationCollection {
39 return predicate.AttestationCollection(sql.FieldGT(FieldID, id))
40 }
41
42 // IDGTE applies the GTE predicate on the ID field.
43 func IDGTE(id uuid.UUID) predicate.AttestationCollection {
44 return predicate.AttestationCollection(sql.FieldGTE(FieldID, id))
45 }
46
47 // IDLT applies the LT predicate on the ID field.
48 func IDLT(id uuid.UUID) predicate.AttestationCollection {
49 return predicate.AttestationCollection(sql.FieldLT(FieldID, id))
50 }
51
52 // IDLTE applies the LTE predicate on the ID field.
53 func IDLTE(id uuid.UUID) predicate.AttestationCollection {
54 return predicate.AttestationCollection(sql.FieldLTE(FieldID, id))
55 }
56
57 // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
58 func Name(v string) predicate.AttestationCollection {
59 return predicate.AttestationCollection(sql.FieldEQ(FieldName, v))
60 }
61
62 // NameEQ applies the EQ predicate on the "name" field.
63 func NameEQ(v string) predicate.AttestationCollection {
64 return predicate.AttestationCollection(sql.FieldEQ(FieldName, v))
65 }
66
67 // NameNEQ applies the NEQ predicate on the "name" field.
68 func NameNEQ(v string) predicate.AttestationCollection {
69 return predicate.AttestationCollection(sql.FieldNEQ(FieldName, v))
70 }
71
72 // NameIn applies the In predicate on the "name" field.
73 func NameIn(vs ...string) predicate.AttestationCollection {
74 return predicate.AttestationCollection(sql.FieldIn(FieldName, vs...))
75 }
76
77 // NameNotIn applies the NotIn predicate on the "name" field.
78 func NameNotIn(vs ...string) predicate.AttestationCollection {
79 return predicate.AttestationCollection(sql.FieldNotIn(FieldName, vs...))
80 }
81
82 // NameGT applies the GT predicate on the "name" field.
83 func NameGT(v string) predicate.AttestationCollection {
84 return predicate.AttestationCollection(sql.FieldGT(FieldName, v))
85 }
86
87 // NameGTE applies the GTE predicate on the "name" field.
88 func NameGTE(v string) predicate.AttestationCollection {
89 return predicate.AttestationCollection(sql.FieldGTE(FieldName, v))
90 }
91
92 // NameLT applies the LT predicate on the "name" field.
93 func NameLT(v string) predicate.AttestationCollection {
94 return predicate.AttestationCollection(sql.FieldLT(FieldName, v))
95 }
96
97 // NameLTE applies the LTE predicate on the "name" field.
98 func NameLTE(v string) predicate.AttestationCollection {
99 return predicate.AttestationCollection(sql.FieldLTE(FieldName, v))
100 }
101
102 // NameContains applies the Contains predicate on the "name" field.
103 func NameContains(v string) predicate.AttestationCollection {
104 return predicate.AttestationCollection(sql.FieldContains(FieldName, v))
105 }
106
107 // NameHasPrefix applies the HasPrefix predicate on the "name" field.
108 func NameHasPrefix(v string) predicate.AttestationCollection {
109 return predicate.AttestationCollection(sql.FieldHasPrefix(FieldName, v))
110 }
111
112 // NameHasSuffix applies the HasSuffix predicate on the "name" field.
113 func NameHasSuffix(v string) predicate.AttestationCollection {
114 return predicate.AttestationCollection(sql.FieldHasSuffix(FieldName, v))
115 }
116
117 // NameEqualFold applies the EqualFold predicate on the "name" field.
118 func NameEqualFold(v string) predicate.AttestationCollection {
119 return predicate.AttestationCollection(sql.FieldEqualFold(FieldName, v))
120 }
121
122 // NameContainsFold applies the ContainsFold predicate on the "name" field.
123 func NameContainsFold(v string) predicate.AttestationCollection {
124 return predicate.AttestationCollection(sql.FieldContainsFold(FieldName, v))
125 }
126
127 // HasAttestations applies the HasEdge predicate on the "attestations" edge.
128 func HasAttestations() predicate.AttestationCollection {
129 return predicate.AttestationCollection(func(s *sql.Selector) {
130 step := sqlgraph.NewStep(
131 sqlgraph.From(Table, FieldID),
132 sqlgraph.Edge(sqlgraph.O2M, false, AttestationsTable, AttestationsColumn),
133 )
134 sqlgraph.HasNeighbors(s, step)
135 })
136 }
137
138 // HasAttestationsWith applies the HasEdge predicate on the "attestations" edge with a given conditions (other predicates).
139 func HasAttestationsWith(preds ...predicate.Attestation) predicate.AttestationCollection {
140 return predicate.AttestationCollection(func(s *sql.Selector) {
141 step := newAttestationsStep()
142 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
143 for _, p := range preds {
144 p(s)
145 }
146 })
147 })
148 }
149
150 // HasStatement applies the HasEdge predicate on the "statement" edge.
151 func HasStatement() predicate.AttestationCollection {
152 return predicate.AttestationCollection(func(s *sql.Selector) {
153 step := sqlgraph.NewStep(
154 sqlgraph.From(Table, FieldID),
155 sqlgraph.Edge(sqlgraph.O2O, true, StatementTable, StatementColumn),
156 )
157 sqlgraph.HasNeighbors(s, step)
158 })
159 }
160
161 // HasStatementWith applies the HasEdge predicate on the "statement" edge with a given conditions (other predicates).
162 func HasStatementWith(preds ...predicate.Statement) predicate.AttestationCollection {
163 return predicate.AttestationCollection(func(s *sql.Selector) {
164 step := newStatementStep()
165 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
166 for _, p := range preds {
167 p(s)
168 }
169 })
170 })
171 }
172
173 // And groups predicates with the AND operator between them.
174 func And(predicates ...predicate.AttestationCollection) predicate.AttestationCollection {
175 return predicate.AttestationCollection(sql.AndPredicates(predicates...))
176 }
177
178 // Or groups predicates with the OR operator between them.
179 func Or(predicates ...predicate.AttestationCollection) predicate.AttestationCollection {
180 return predicate.AttestationCollection(sql.OrPredicates(predicates...))
181 }
182
183 // Not applies the not operator on the given predicate.
184 func Not(p predicate.AttestationCollection) predicate.AttestationCollection {
185 return predicate.AttestationCollection(sql.NotPredicates(p))
186 }