Debian Codegraph @

ent/payloaddigest/where.go

raw
1 // Code generated by ent, DO NOT EDIT.
2
3 package payloaddigest
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.PayloadDigest {
14 return predicate.PayloadDigest(sql.FieldEQ(FieldID, id))
15 }
16
17 // IDEQ applies the EQ predicate on the ID field.
18 func IDEQ(id uuid.UUID) predicate.PayloadDigest {
19 return predicate.PayloadDigest(sql.FieldEQ(FieldID, id))
20 }
21
22 // IDNEQ applies the NEQ predicate on the ID field.
23 func IDNEQ(id uuid.UUID) predicate.PayloadDigest {
24 return predicate.PayloadDigest(sql.FieldNEQ(FieldID, id))
25 }
26
27 // IDIn applies the In predicate on the ID field.
28 func IDIn(ids ...uuid.UUID) predicate.PayloadDigest {
29 return predicate.PayloadDigest(sql.FieldIn(FieldID, ids...))
30 }
31
32 // IDNotIn applies the NotIn predicate on the ID field.
33 func IDNotIn(ids ...uuid.UUID) predicate.PayloadDigest {
34 return predicate.PayloadDigest(sql.FieldNotIn(FieldID, ids...))
35 }
36
37 // IDGT applies the GT predicate on the ID field.
38 func IDGT(id uuid.UUID) predicate.PayloadDigest {
39 return predicate.PayloadDigest(sql.FieldGT(FieldID, id))
40 }
41
42 // IDGTE applies the GTE predicate on the ID field.
43 func IDGTE(id uuid.UUID) predicate.PayloadDigest {
44 return predicate.PayloadDigest(sql.FieldGTE(FieldID, id))
45 }
46
47 // IDLT applies the LT predicate on the ID field.
48 func IDLT(id uuid.UUID) predicate.PayloadDigest {
49 return predicate.PayloadDigest(sql.FieldLT(FieldID, id))
50 }
51
52 // IDLTE applies the LTE predicate on the ID field.
53 func IDLTE(id uuid.UUID) predicate.PayloadDigest {
54 return predicate.PayloadDigest(sql.FieldLTE(FieldID, id))
55 }
56
57 // Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.
58 func Algorithm(v string) predicate.PayloadDigest {
59 return predicate.PayloadDigest(sql.FieldEQ(FieldAlgorithm, v))
60 }
61
62 // Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
63 func Value(v string) predicate.PayloadDigest {
64 return predicate.PayloadDigest(sql.FieldEQ(FieldValue, v))
65 }
66
67 // AlgorithmEQ applies the EQ predicate on the "algorithm" field.
68 func AlgorithmEQ(v string) predicate.PayloadDigest {
69 return predicate.PayloadDigest(sql.FieldEQ(FieldAlgorithm, v))
70 }
71
72 // AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.
73 func AlgorithmNEQ(v string) predicate.PayloadDigest {
74 return predicate.PayloadDigest(sql.FieldNEQ(FieldAlgorithm, v))
75 }
76
77 // AlgorithmIn applies the In predicate on the "algorithm" field.
78 func AlgorithmIn(vs ...string) predicate.PayloadDigest {
79 return predicate.PayloadDigest(sql.FieldIn(FieldAlgorithm, vs...))
80 }
81
82 // AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.
83 func AlgorithmNotIn(vs ...string) predicate.PayloadDigest {
84 return predicate.PayloadDigest(sql.FieldNotIn(FieldAlgorithm, vs...))
85 }
86
87 // AlgorithmGT applies the GT predicate on the "algorithm" field.
88 func AlgorithmGT(v string) predicate.PayloadDigest {
89 return predicate.PayloadDigest(sql.FieldGT(FieldAlgorithm, v))
90 }
91
92 // AlgorithmGTE applies the GTE predicate on the "algorithm" field.
93 func AlgorithmGTE(v string) predicate.PayloadDigest {
94 return predicate.PayloadDigest(sql.FieldGTE(FieldAlgorithm, v))
95 }
96
97 // AlgorithmLT applies the LT predicate on the "algorithm" field.
98 func AlgorithmLT(v string) predicate.PayloadDigest {
99 return predicate.PayloadDigest(sql.FieldLT(FieldAlgorithm, v))
100 }
101
102 // AlgorithmLTE applies the LTE predicate on the "algorithm" field.
103 func AlgorithmLTE(v string) predicate.PayloadDigest {
104 return predicate.PayloadDigest(sql.FieldLTE(FieldAlgorithm, v))
105 }
106
107 // AlgorithmContains applies the Contains predicate on the "algorithm" field.
108 func AlgorithmContains(v string) predicate.PayloadDigest {
109 return predicate.PayloadDigest(sql.FieldContains(FieldAlgorithm, v))
110 }
111
112 // AlgorithmHasPrefix applies the HasPrefix predicate on the "algorithm" field.
113 func AlgorithmHasPrefix(v string) predicate.PayloadDigest {
114 return predicate.PayloadDigest(sql.FieldHasPrefix(FieldAlgorithm, v))
115 }
116
117 // AlgorithmHasSuffix applies the HasSuffix predicate on the "algorithm" field.
118 func AlgorithmHasSuffix(v string) predicate.PayloadDigest {
119 return predicate.PayloadDigest(sql.FieldHasSuffix(FieldAlgorithm, v))
120 }
121
122 // AlgorithmEqualFold applies the EqualFold predicate on the "algorithm" field.
123 func AlgorithmEqualFold(v string) predicate.PayloadDigest {
124 return predicate.PayloadDigest(sql.FieldEqualFold(FieldAlgorithm, v))
125 }
126
127 // AlgorithmContainsFold applies the ContainsFold predicate on the "algorithm" field.
128 func AlgorithmContainsFold(v string) predicate.PayloadDigest {
129 return predicate.PayloadDigest(sql.FieldContainsFold(FieldAlgorithm, v))
130 }
131
132 // ValueEQ applies the EQ predicate on the "value" field.
133 func ValueEQ(v string) predicate.PayloadDigest {
134 return predicate.PayloadDigest(sql.FieldEQ(FieldValue, v))
135 }
136
137 // ValueNEQ applies the NEQ predicate on the "value" field.
138 func ValueNEQ(v string) predicate.PayloadDigest {
139 return predicate.PayloadDigest(sql.FieldNEQ(FieldValue, v))
140 }
141
142 // ValueIn applies the In predicate on the "value" field.
143 func ValueIn(vs ...string) predicate.PayloadDigest {
144 return predicate.PayloadDigest(sql.FieldIn(FieldValue, vs...))
145 }
146
147 // ValueNotIn applies the NotIn predicate on the "value" field.
148 func ValueNotIn(vs ...string) predicate.PayloadDigest {
149 return predicate.PayloadDigest(sql.FieldNotIn(FieldValue, vs...))
150 }
151
152 // ValueGT applies the GT predicate on the "value" field.
153 func ValueGT(v string) predicate.PayloadDigest {
154 return predicate.PayloadDigest(sql.FieldGT(FieldValue, v))
155 }
156
157 // ValueGTE applies the GTE predicate on the "value" field.
158 func ValueGTE(v string) predicate.PayloadDigest {
159 return predicate.PayloadDigest(sql.FieldGTE(FieldValue, v))
160 }
161
162 // ValueLT applies the LT predicate on the "value" field.
163 func ValueLT(v string) predicate.PayloadDigest {
164 return predicate.PayloadDigest(sql.FieldLT(FieldValue, v))
165 }
166
167 // ValueLTE applies the LTE predicate on the "value" field.
168 func ValueLTE(v string) predicate.PayloadDigest {
169 return predicate.PayloadDigest(sql.FieldLTE(FieldValue, v))
170 }
171
172 // ValueContains applies the Contains predicate on the "value" field.
173 func ValueContains(v string) predicate.PayloadDigest {
174 return predicate.PayloadDigest(sql.FieldContains(FieldValue, v))
175 }
176
177 // ValueHasPrefix applies the HasPrefix predicate on the "value" field.
178 func ValueHasPrefix(v string) predicate.PayloadDigest {
179 return predicate.PayloadDigest(sql.FieldHasPrefix(FieldValue, v))
180 }
181
182 // ValueHasSuffix applies the HasSuffix predicate on the "value" field.
183 func ValueHasSuffix(v string) predicate.PayloadDigest {
184 return predicate.PayloadDigest(sql.FieldHasSuffix(FieldValue, v))
185 }
186
187 // ValueEqualFold applies the EqualFold predicate on the "value" field.
188 func ValueEqualFold(v string) predicate.PayloadDigest {
189 return predicate.PayloadDigest(sql.FieldEqualFold(FieldValue, v))
190 }
191
192 // ValueContainsFold applies the ContainsFold predicate on the "value" field.
193 func ValueContainsFold(v string) predicate.PayloadDigest {
194 return predicate.PayloadDigest(sql.FieldContainsFold(FieldValue, v))
195 }
196
197 // HasDsse applies the HasEdge predicate on the "dsse" edge.
198 func HasDsse() predicate.PayloadDigest {
199 return predicate.PayloadDigest(func(s *sql.Selector) {
200 step := sqlgraph.NewStep(
201 sqlgraph.From(Table, FieldID),
202 sqlgraph.Edge(sqlgraph.M2O, true, DsseTable, DsseColumn),
203 )
204 sqlgraph.HasNeighbors(s, step)
205 })
206 }
207
208 // HasDsseWith applies the HasEdge predicate on the "dsse" edge with a given conditions (other predicates).
209 func HasDsseWith(preds ...predicate.Dsse) predicate.PayloadDigest {
210 return predicate.PayloadDigest(func(s *sql.Selector) {
211 step := newDsseStep()
212 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
213 for _, p := range preds {
214 p(s)
215 }
216 })
217 })
218 }
219
220 // And groups predicates with the AND operator between them.
221 func And(predicates ...predicate.PayloadDigest) predicate.PayloadDigest {
222 return predicate.PayloadDigest(sql.AndPredicates(predicates...))
223 }
224
225 // Or groups predicates with the OR operator between them.
226 func Or(predicates ...predicate.PayloadDigest) predicate.PayloadDigest {
227 return predicate.PayloadDigest(sql.OrPredicates(predicates...))
228 }
229
230 // Not applies the not operator on the given predicate.
231 func Not(p predicate.PayloadDigest) predicate.PayloadDigest {
232 return predicate.PayloadDigest(sql.NotPredicates(p))
233 }