Debian Codegraph @

ent/signature/where.go

raw
1 // Code generated by ent, DO NOT EDIT.
2
3 package signature
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.Signature {
14 return predicate.Signature(sql.FieldEQ(FieldID, id))
15 }
16
17 // IDEQ applies the EQ predicate on the ID field.
18 func IDEQ(id uuid.UUID) predicate.Signature {
19 return predicate.Signature(sql.FieldEQ(FieldID, id))
20 }
21
22 // IDNEQ applies the NEQ predicate on the ID field.
23 func IDNEQ(id uuid.UUID) predicate.Signature {
24 return predicate.Signature(sql.FieldNEQ(FieldID, id))
25 }
26
27 // IDIn applies the In predicate on the ID field.
28 func IDIn(ids ...uuid.UUID) predicate.Signature {
29 return predicate.Signature(sql.FieldIn(FieldID, ids...))
30 }
31
32 // IDNotIn applies the NotIn predicate on the ID field.
33 func IDNotIn(ids ...uuid.UUID) predicate.Signature {
34 return predicate.Signature(sql.FieldNotIn(FieldID, ids...))
35 }
36
37 // IDGT applies the GT predicate on the ID field.
38 func IDGT(id uuid.UUID) predicate.Signature {
39 return predicate.Signature(sql.FieldGT(FieldID, id))
40 }
41
42 // IDGTE applies the GTE predicate on the ID field.
43 func IDGTE(id uuid.UUID) predicate.Signature {
44 return predicate.Signature(sql.FieldGTE(FieldID, id))
45 }
46
47 // IDLT applies the LT predicate on the ID field.
48 func IDLT(id uuid.UUID) predicate.Signature {
49 return predicate.Signature(sql.FieldLT(FieldID, id))
50 }
51
52 // IDLTE applies the LTE predicate on the ID field.
53 func IDLTE(id uuid.UUID) predicate.Signature {
54 return predicate.Signature(sql.FieldLTE(FieldID, id))
55 }
56
57 // KeyID applies equality check predicate on the "key_id" field. It's identical to KeyIDEQ.
58 func KeyID(v string) predicate.Signature {
59 return predicate.Signature(sql.FieldEQ(FieldKeyID, v))
60 }
61
62 // Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.
63 func Signature(v string) predicate.Signature {
64 return predicate.Signature(sql.FieldEQ(FieldSignature, v))
65 }
66
67 // KeyIDEQ applies the EQ predicate on the "key_id" field.
68 func KeyIDEQ(v string) predicate.Signature {
69 return predicate.Signature(sql.FieldEQ(FieldKeyID, v))
70 }
71
72 // KeyIDNEQ applies the NEQ predicate on the "key_id" field.
73 func KeyIDNEQ(v string) predicate.Signature {
74 return predicate.Signature(sql.FieldNEQ(FieldKeyID, v))
75 }
76
77 // KeyIDIn applies the In predicate on the "key_id" field.
78 func KeyIDIn(vs ...string) predicate.Signature {
79 return predicate.Signature(sql.FieldIn(FieldKeyID, vs...))
80 }
81
82 // KeyIDNotIn applies the NotIn predicate on the "key_id" field.
83 func KeyIDNotIn(vs ...string) predicate.Signature {
84 return predicate.Signature(sql.FieldNotIn(FieldKeyID, vs...))
85 }
86
87 // KeyIDGT applies the GT predicate on the "key_id" field.
88 func KeyIDGT(v string) predicate.Signature {
89 return predicate.Signature(sql.FieldGT(FieldKeyID, v))
90 }
91
92 // KeyIDGTE applies the GTE predicate on the "key_id" field.
93 func KeyIDGTE(v string) predicate.Signature {
94 return predicate.Signature(sql.FieldGTE(FieldKeyID, v))
95 }
96
97 // KeyIDLT applies the LT predicate on the "key_id" field.
98 func KeyIDLT(v string) predicate.Signature {
99 return predicate.Signature(sql.FieldLT(FieldKeyID, v))
100 }
101
102 // KeyIDLTE applies the LTE predicate on the "key_id" field.
103 func KeyIDLTE(v string) predicate.Signature {
104 return predicate.Signature(sql.FieldLTE(FieldKeyID, v))
105 }
106
107 // KeyIDContains applies the Contains predicate on the "key_id" field.
108 func KeyIDContains(v string) predicate.Signature {
109 return predicate.Signature(sql.FieldContains(FieldKeyID, v))
110 }
111
112 // KeyIDHasPrefix applies the HasPrefix predicate on the "key_id" field.
113 func KeyIDHasPrefix(v string) predicate.Signature {
114 return predicate.Signature(sql.FieldHasPrefix(FieldKeyID, v))
115 }
116
117 // KeyIDHasSuffix applies the HasSuffix predicate on the "key_id" field.
118 func KeyIDHasSuffix(v string) predicate.Signature {
119 return predicate.Signature(sql.FieldHasSuffix(FieldKeyID, v))
120 }
121
122 // KeyIDEqualFold applies the EqualFold predicate on the "key_id" field.
123 func KeyIDEqualFold(v string) predicate.Signature {
124 return predicate.Signature(sql.FieldEqualFold(FieldKeyID, v))
125 }
126
127 // KeyIDContainsFold applies the ContainsFold predicate on the "key_id" field.
128 func KeyIDContainsFold(v string) predicate.Signature {
129 return predicate.Signature(sql.FieldContainsFold(FieldKeyID, v))
130 }
131
132 // SignatureEQ applies the EQ predicate on the "signature" field.
133 func SignatureEQ(v string) predicate.Signature {
134 return predicate.Signature(sql.FieldEQ(FieldSignature, v))
135 }
136
137 // SignatureNEQ applies the NEQ predicate on the "signature" field.
138 func SignatureNEQ(v string) predicate.Signature {
139 return predicate.Signature(sql.FieldNEQ(FieldSignature, v))
140 }
141
142 // SignatureIn applies the In predicate on the "signature" field.
143 func SignatureIn(vs ...string) predicate.Signature {
144 return predicate.Signature(sql.FieldIn(FieldSignature, vs...))
145 }
146
147 // SignatureNotIn applies the NotIn predicate on the "signature" field.
148 func SignatureNotIn(vs ...string) predicate.Signature {
149 return predicate.Signature(sql.FieldNotIn(FieldSignature, vs...))
150 }
151
152 // SignatureGT applies the GT predicate on the "signature" field.
153 func SignatureGT(v string) predicate.Signature {
154 return predicate.Signature(sql.FieldGT(FieldSignature, v))
155 }
156
157 // SignatureGTE applies the GTE predicate on the "signature" field.
158 func SignatureGTE(v string) predicate.Signature {
159 return predicate.Signature(sql.FieldGTE(FieldSignature, v))
160 }
161
162 // SignatureLT applies the LT predicate on the "signature" field.
163 func SignatureLT(v string) predicate.Signature {
164 return predicate.Signature(sql.FieldLT(FieldSignature, v))
165 }
166
167 // SignatureLTE applies the LTE predicate on the "signature" field.
168 func SignatureLTE(v string) predicate.Signature {
169 return predicate.Signature(sql.FieldLTE(FieldSignature, v))
170 }
171
172 // SignatureContains applies the Contains predicate on the "signature" field.
173 func SignatureContains(v string) predicate.Signature {
174 return predicate.Signature(sql.FieldContains(FieldSignature, v))
175 }
176
177 // SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.
178 func SignatureHasPrefix(v string) predicate.Signature {
179 return predicate.Signature(sql.FieldHasPrefix(FieldSignature, v))
180 }
181
182 // SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.
183 func SignatureHasSuffix(v string) predicate.Signature {
184 return predicate.Signature(sql.FieldHasSuffix(FieldSignature, v))
185 }
186
187 // SignatureEqualFold applies the EqualFold predicate on the "signature" field.
188 func SignatureEqualFold(v string) predicate.Signature {
189 return predicate.Signature(sql.FieldEqualFold(FieldSignature, v))
190 }
191
192 // SignatureContainsFold applies the ContainsFold predicate on the "signature" field.
193 func SignatureContainsFold(v string) predicate.Signature {
194 return predicate.Signature(sql.FieldContainsFold(FieldSignature, v))
195 }
196
197 // HasDsse applies the HasEdge predicate on the "dsse" edge.
198 func HasDsse() predicate.Signature {
199 return predicate.Signature(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.Signature {
210 return predicate.Signature(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 // HasTimestamps applies the HasEdge predicate on the "timestamps" edge.
221 func HasTimestamps() predicate.Signature {
222 return predicate.Signature(func(s *sql.Selector) {
223 step := sqlgraph.NewStep(
224 sqlgraph.From(Table, FieldID),
225 sqlgraph.Edge(sqlgraph.O2M, false, TimestampsTable, TimestampsColumn),
226 )
227 sqlgraph.HasNeighbors(s, step)
228 })
229 }
230
231 // HasTimestampsWith applies the HasEdge predicate on the "timestamps" edge with a given conditions (other predicates).
232 func HasTimestampsWith(preds ...predicate.Timestamp) predicate.Signature {
233 return predicate.Signature(func(s *sql.Selector) {
234 step := newTimestampsStep()
235 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
236 for _, p := range preds {
237 p(s)
238 }
239 })
240 })
241 }
242
243 // And groups predicates with the AND operator between them.
244 func And(predicates ...predicate.Signature) predicate.Signature {
245 return predicate.Signature(sql.AndPredicates(predicates...))
246 }
247
248 // Or groups predicates with the OR operator between them.
249 func Or(predicates ...predicate.Signature) predicate.Signature {
250 return predicate.Signature(sql.OrPredicates(predicates...))
251 }
252
253 // Not applies the not operator on the given predicate.
254 func Not(p predicate.Signature) predicate.Signature {
255 return predicate.Signature(sql.NotPredicates(p))
256 }