-
Notifications
You must be signed in to change notification settings - Fork 1
/
where.go
634 lines (509 loc) · 22.4 KB
/
where.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
// Code generated by ent, DO NOT EDIT.
package filesource
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/woocoos/knockout/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldID, id))
}
// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedBy(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedBy(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldUpdatedBy, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldUpdatedAt, v))
}
// Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func Comments(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldComments, v))
}
// Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.
func Endpoint(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldEndpoint, v))
}
// Region applies equality check predicate on the "region" field. It's identical to RegionEQ.
func Region(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldRegion, v))
}
// Bucket applies equality check predicate on the "bucket" field. It's identical to BucketEQ.
func Bucket(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldBucket, v))
}
// CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEQ(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNEQ(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldCreatedBy, v))
}
// CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIn(vs ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldCreatedBy, vs...))
}
// CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotIn(vs ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldCreatedBy, vs...))
}
// CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGT(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldCreatedBy, v))
}
// CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByGTE(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldCreatedBy, v))
}
// CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLT(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldCreatedBy, v))
}
// CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByLTE(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldCreatedBy, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEQ(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldUpdatedBy, v))
}
// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNEQ(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldUpdatedBy, v))
}
// UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIn(vs ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldUpdatedBy, vs...))
}
// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotIn(vs ...int) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldUpdatedBy, vs...))
}
// UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGT(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldUpdatedBy, v))
}
// UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByGTE(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldUpdatedBy, v))
}
// UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLT(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldUpdatedBy, v))
}
// UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByLTE(v int) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldUpdatedBy, v))
}
// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldUpdatedBy))
}
// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UpdatedByNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldUpdatedBy))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldUpdatedAt, v))
}
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldUpdatedAt))
}
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedAtNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldUpdatedAt))
}
// KindEQ applies the EQ predicate on the "kind" field.
func KindEQ(v Kind) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldKind, v))
}
// KindNEQ applies the NEQ predicate on the "kind" field.
func KindNEQ(v Kind) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldKind, v))
}
// KindIn applies the In predicate on the "kind" field.
func KindIn(vs ...Kind) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldKind, vs...))
}
// KindNotIn applies the NotIn predicate on the "kind" field.
func KindNotIn(vs ...Kind) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldKind, vs...))
}
// CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldComments, v))
}
// CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldComments, v))
}
// CommentsIn applies the In predicate on the "comments" field.
func CommentsIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldComments, vs...))
}
// CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldComments, vs...))
}
// CommentsGT applies the GT predicate on the "comments" field.
func CommentsGT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldComments, v))
}
// CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsGTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldComments, v))
}
// CommentsLT applies the LT predicate on the "comments" field.
func CommentsLT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldComments, v))
}
// CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsLTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldComments, v))
}
// CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContains(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContains(FieldComments, v))
}
// CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasPrefix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasPrefix(FieldComments, v))
}
// CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsHasSuffix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasSuffix(FieldComments, v))
}
// CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldComments))
}
// CommentsNotNil applies the NotNil predicate on the "comments" field.
func CommentsNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldComments))
}
// CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsEqualFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEqualFold(FieldComments, v))
}
// CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsContainsFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContainsFold(FieldComments, v))
}
// EndpointEQ applies the EQ predicate on the "endpoint" field.
func EndpointEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldEndpoint, v))
}
// EndpointNEQ applies the NEQ predicate on the "endpoint" field.
func EndpointNEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldEndpoint, v))
}
// EndpointIn applies the In predicate on the "endpoint" field.
func EndpointIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldEndpoint, vs...))
}
// EndpointNotIn applies the NotIn predicate on the "endpoint" field.
func EndpointNotIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldEndpoint, vs...))
}
// EndpointGT applies the GT predicate on the "endpoint" field.
func EndpointGT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldEndpoint, v))
}
// EndpointGTE applies the GTE predicate on the "endpoint" field.
func EndpointGTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldEndpoint, v))
}
// EndpointLT applies the LT predicate on the "endpoint" field.
func EndpointLT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldEndpoint, v))
}
// EndpointLTE applies the LTE predicate on the "endpoint" field.
func EndpointLTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldEndpoint, v))
}
// EndpointContains applies the Contains predicate on the "endpoint" field.
func EndpointContains(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContains(FieldEndpoint, v))
}
// EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.
func EndpointHasPrefix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasPrefix(FieldEndpoint, v))
}
// EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.
func EndpointHasSuffix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasSuffix(FieldEndpoint, v))
}
// EndpointIsNil applies the IsNil predicate on the "endpoint" field.
func EndpointIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldEndpoint))
}
// EndpointNotNil applies the NotNil predicate on the "endpoint" field.
func EndpointNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldEndpoint))
}
// EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.
func EndpointEqualFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEqualFold(FieldEndpoint, v))
}
// EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.
func EndpointContainsFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContainsFold(FieldEndpoint, v))
}
// RegionEQ applies the EQ predicate on the "region" field.
func RegionEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldRegion, v))
}
// RegionNEQ applies the NEQ predicate on the "region" field.
func RegionNEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldRegion, v))
}
// RegionIn applies the In predicate on the "region" field.
func RegionIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldRegion, vs...))
}
// RegionNotIn applies the NotIn predicate on the "region" field.
func RegionNotIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldRegion, vs...))
}
// RegionGT applies the GT predicate on the "region" field.
func RegionGT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldRegion, v))
}
// RegionGTE applies the GTE predicate on the "region" field.
func RegionGTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldRegion, v))
}
// RegionLT applies the LT predicate on the "region" field.
func RegionLT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldRegion, v))
}
// RegionLTE applies the LTE predicate on the "region" field.
func RegionLTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldRegion, v))
}
// RegionContains applies the Contains predicate on the "region" field.
func RegionContains(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContains(FieldRegion, v))
}
// RegionHasPrefix applies the HasPrefix predicate on the "region" field.
func RegionHasPrefix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasPrefix(FieldRegion, v))
}
// RegionHasSuffix applies the HasSuffix predicate on the "region" field.
func RegionHasSuffix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasSuffix(FieldRegion, v))
}
// RegionIsNil applies the IsNil predicate on the "region" field.
func RegionIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldRegion))
}
// RegionNotNil applies the NotNil predicate on the "region" field.
func RegionNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldRegion))
}
// RegionEqualFold applies the EqualFold predicate on the "region" field.
func RegionEqualFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEqualFold(FieldRegion, v))
}
// RegionContainsFold applies the ContainsFold predicate on the "region" field.
func RegionContainsFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContainsFold(FieldRegion, v))
}
// BucketEQ applies the EQ predicate on the "bucket" field.
func BucketEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEQ(FieldBucket, v))
}
// BucketNEQ applies the NEQ predicate on the "bucket" field.
func BucketNEQ(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldNEQ(FieldBucket, v))
}
// BucketIn applies the In predicate on the "bucket" field.
func BucketIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldIn(FieldBucket, vs...))
}
// BucketNotIn applies the NotIn predicate on the "bucket" field.
func BucketNotIn(vs ...string) predicate.FileSource {
return predicate.FileSource(sql.FieldNotIn(FieldBucket, vs...))
}
// BucketGT applies the GT predicate on the "bucket" field.
func BucketGT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGT(FieldBucket, v))
}
// BucketGTE applies the GTE predicate on the "bucket" field.
func BucketGTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldGTE(FieldBucket, v))
}
// BucketLT applies the LT predicate on the "bucket" field.
func BucketLT(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLT(FieldBucket, v))
}
// BucketLTE applies the LTE predicate on the "bucket" field.
func BucketLTE(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldLTE(FieldBucket, v))
}
// BucketContains applies the Contains predicate on the "bucket" field.
func BucketContains(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContains(FieldBucket, v))
}
// BucketHasPrefix applies the HasPrefix predicate on the "bucket" field.
func BucketHasPrefix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasPrefix(FieldBucket, v))
}
// BucketHasSuffix applies the HasSuffix predicate on the "bucket" field.
func BucketHasSuffix(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldHasSuffix(FieldBucket, v))
}
// BucketIsNil applies the IsNil predicate on the "bucket" field.
func BucketIsNil() predicate.FileSource {
return predicate.FileSource(sql.FieldIsNull(FieldBucket))
}
// BucketNotNil applies the NotNil predicate on the "bucket" field.
func BucketNotNil() predicate.FileSource {
return predicate.FileSource(sql.FieldNotNull(FieldBucket))
}
// BucketEqualFold applies the EqualFold predicate on the "bucket" field.
func BucketEqualFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldEqualFold(FieldBucket, v))
}
// BucketContainsFold applies the ContainsFold predicate on the "bucket" field.
func BucketContainsFold(v string) predicate.FileSource {
return predicate.FileSource(sql.FieldContainsFold(FieldBucket, v))
}
// HasFiles applies the HasEdge predicate on the "files" edge.
func HasFiles() predicate.FileSource {
return predicate.FileSource(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, FilesTable, FilesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasFilesWith(preds ...predicate.File) predicate.FileSource {
return predicate.FileSource(func(s *sql.Selector) {
step := newFilesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.FileSource) predicate.FileSource {
return predicate.FileSource(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.FileSource) predicate.FileSource {
return predicate.FileSource(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.FileSource) predicate.FileSource {
return predicate.FileSource(sql.NotPredicates(p))
}