| 1 |
// Code generated by ent, DO NOT EDIT. |
| 2 |
|
| 3 |
package timestamp |
| 4 |
|
| 5 |
import ( |
| 6 |
"time" |
| 7 |
|
| 8 |
"entgo.io/ent/dialect/sql" |
| 9 |
"entgo.io/ent/dialect/sql/sqlgraph" |
| 10 |
"github.com/google/uuid" |
| 11 |
"github.com/in-toto/archivista/ent/predicate" |
| 12 |
) |
| 13 |
|
| 14 |
// ID filters vertices based on their ID field. |
| 15 |
func ID(id uuid.UUID) predicate.Timestamp { |
| 16 |
return predicate.Timestamp(sql.FieldEQ(FieldID, id)) |
| 17 |
} |
| 18 |
|
| 19 |
// IDEQ applies the EQ predicate on the ID field. |
| 20 |
func IDEQ(id uuid.UUID) predicate.Timestamp { |
| 21 |
return predicate.Timestamp(sql.FieldEQ(FieldID, id)) |
| 22 |
} |
| 23 |
|
| 24 |
// IDNEQ applies the NEQ predicate on the ID field. |
| 25 |
func IDNEQ(id uuid.UUID) predicate.Timestamp { |
| 26 |
return predicate.Timestamp(sql.FieldNEQ(FieldID, id)) |
| 27 |
} |
| 28 |
|
| 29 |
// IDIn applies the In predicate on the ID field. |
| 30 |
func IDIn(ids ...uuid.UUID) predicate.Timestamp { |
| 31 |
return predicate.Timestamp(sql.FieldIn(FieldID, ids...)) |
| 32 |
} |
| 33 |
|
| 34 |
// IDNotIn applies the NotIn predicate on the ID field. |
| 35 |
func IDNotIn(ids ...uuid.UUID) predicate.Timestamp { |
| 36 |
return predicate.Timestamp(sql.FieldNotIn(FieldID, ids...)) |
| 37 |
} |
| 38 |
|
| 39 |
// IDGT applies the GT predicate on the ID field. |
| 40 |
func IDGT(id uuid.UUID) predicate.Timestamp { |
| 41 |
return predicate.Timestamp(sql.FieldGT(FieldID, id)) |
| 42 |
} |
| 43 |
|
| 44 |
// IDGTE applies the GTE predicate on the ID field. |
| 45 |
func IDGTE(id uuid.UUID) predicate.Timestamp { |
| 46 |
return predicate.Timestamp(sql.FieldGTE(FieldID, id)) |
| 47 |
} |
| 48 |
|
| 49 |
// IDLT applies the LT predicate on the ID field. |
| 50 |
func IDLT(id uuid.UUID) predicate.Timestamp { |
| 51 |
return predicate.Timestamp(sql.FieldLT(FieldID, id)) |
| 52 |
} |
| 53 |
|
| 54 |
// IDLTE applies the LTE predicate on the ID field. |
| 55 |
func IDLTE(id uuid.UUID) predicate.Timestamp { |
| 56 |
return predicate.Timestamp(sql.FieldLTE(FieldID, id)) |
| 57 |
} |
| 58 |
|
| 59 |
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ. |
| 60 |
func Type(v string) predicate.Timestamp { |
| 61 |
return predicate.Timestamp(sql.FieldEQ(FieldType, v)) |
| 62 |
} |
| 63 |
|
| 64 |
// Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ. |
| 65 |
func Timestamp(v time.Time) predicate.Timestamp { |
| 66 |
return predicate.Timestamp(sql.FieldEQ(FieldTimestamp, v)) |
| 67 |
} |
| 68 |
|
| 69 |
// TypeEQ applies the EQ predicate on the "type" field. |
| 70 |
func TypeEQ(v string) predicate.Timestamp { |
| 71 |
return predicate.Timestamp(sql.FieldEQ(FieldType, v)) |
| 72 |
} |
| 73 |
|
| 74 |
// TypeNEQ applies the NEQ predicate on the "type" field. |
| 75 |
func TypeNEQ(v string) predicate.Timestamp { |
| 76 |
return predicate.Timestamp(sql.FieldNEQ(FieldType, v)) |
| 77 |
} |
| 78 |
|
| 79 |
// TypeIn applies the In predicate on the "type" field. |
| 80 |
func TypeIn(vs ...string) predicate.Timestamp { |
| 81 |
return predicate.Timestamp(sql.FieldIn(FieldType, vs...)) |
| 82 |
} |
| 83 |
|
| 84 |
// TypeNotIn applies the NotIn predicate on the "type" field. |
| 85 |
func TypeNotIn(vs ...string) predicate.Timestamp { |
| 86 |
return predicate.Timestamp(sql.FieldNotIn(FieldType, vs...)) |
| 87 |
} |
| 88 |
|
| 89 |
// TypeGT applies the GT predicate on the "type" field. |
| 90 |
func TypeGT(v string) predicate.Timestamp { |
| 91 |
return predicate.Timestamp(sql.FieldGT(FieldType, v)) |
| 92 |
} |
| 93 |
|
| 94 |
// TypeGTE applies the GTE predicate on the "type" field. |
| 95 |
func TypeGTE(v string) predicate.Timestamp { |
| 96 |
return predicate.Timestamp(sql.FieldGTE(FieldType, v)) |
| 97 |
} |
| 98 |
|
| 99 |
// TypeLT applies the LT predicate on the "type" field. |
| 100 |
func TypeLT(v string) predicate.Timestamp { |
| 101 |
return predicate.Timestamp(sql.FieldLT(FieldType, v)) |
| 102 |
} |
| 103 |
|
| 104 |
// TypeLTE applies the LTE predicate on the "type" field. |
| 105 |
func TypeLTE(v string) predicate.Timestamp { |
| 106 |
return predicate.Timestamp(sql.FieldLTE(FieldType, v)) |
| 107 |
} |
| 108 |
|
| 109 |
// TypeContains applies the Contains predicate on the "type" field. |
| 110 |
func TypeContains(v string) predicate.Timestamp { |
| 111 |
return predicate.Timestamp(sql.FieldContains(FieldType, v)) |
| 112 |
} |
| 113 |
|
| 114 |
// TypeHasPrefix applies the HasPrefix predicate on the "type" field. |
| 115 |
func TypeHasPrefix(v string) predicate.Timestamp { |
| 116 |
return predicate.Timestamp(sql.FieldHasPrefix(FieldType, v)) |
| 117 |
} |
| 118 |
|
| 119 |
// TypeHasSuffix applies the HasSuffix predicate on the "type" field. |
| 120 |
func TypeHasSuffix(v string) predicate.Timestamp { |
| 121 |
return predicate.Timestamp(sql.FieldHasSuffix(FieldType, v)) |
| 122 |
} |
| 123 |
|
| 124 |
// TypeEqualFold applies the EqualFold predicate on the "type" field. |
| 125 |
func TypeEqualFold(v string) predicate.Timestamp { |
| 126 |
return predicate.Timestamp(sql.FieldEqualFold(FieldType, v)) |
| 127 |
} |
| 128 |
|
| 129 |
// TypeContainsFold applies the ContainsFold predicate on the "type" field. |
| 130 |
func TypeContainsFold(v string) predicate.Timestamp { |
| 131 |
return predicate.Timestamp(sql.FieldContainsFold(FieldType, v)) |
| 132 |
} |
| 133 |
|
| 134 |
// TimestampEQ applies the EQ predicate on the "timestamp" field. |
| 135 |
func TimestampEQ(v time.Time) predicate.Timestamp { |
| 136 |
return predicate.Timestamp(sql.FieldEQ(FieldTimestamp, v)) |
| 137 |
} |
| 138 |
|
| 139 |
// TimestampNEQ applies the NEQ predicate on the "timestamp" field. |
| 140 |
func TimestampNEQ(v time.Time) predicate.Timestamp { |
| 141 |
return predicate.Timestamp(sql.FieldNEQ(FieldTimestamp, v)) |
| 142 |
} |
| 143 |
|
| 144 |
// TimestampIn applies the In predicate on the "timestamp" field. |
| 145 |
func TimestampIn(vs ...time.Time) predicate.Timestamp { |
| 146 |
return predicate.Timestamp(sql.FieldIn(FieldTimestamp, vs...)) |
| 147 |
} |
| 148 |
|
| 149 |
// TimestampNotIn applies the NotIn predicate on the "timestamp" field. |
| 150 |
func TimestampNotIn(vs ...time.Time) predicate.Timestamp { |
| 151 |
return predicate.Timestamp(sql.FieldNotIn(FieldTimestamp, vs...)) |
| 152 |
} |
| 153 |
|
| 154 |
// TimestampGT applies the GT predicate on the "timestamp" field. |
| 155 |
func TimestampGT(v time.Time) predicate.Timestamp { |
| 156 |
return predicate.Timestamp(sql.FieldGT(FieldTimestamp, v)) |
| 157 |
} |
| 158 |
|
| 159 |
// TimestampGTE applies the GTE predicate on the "timestamp" field. |
| 160 |
func TimestampGTE(v time.Time) predicate.Timestamp { |
| 161 |
return predicate.Timestamp(sql.FieldGTE(FieldTimestamp, v)) |
| 162 |
} |
| 163 |
|
| 164 |
// TimestampLT applies the LT predicate on the "timestamp" field. |
| 165 |
func TimestampLT(v time.Time) predicate.Timestamp { |
| 166 |
return predicate.Timestamp(sql.FieldLT(FieldTimestamp, v)) |
| 167 |
} |
| 168 |
|
| 169 |
// TimestampLTE applies the LTE predicate on the "timestamp" field. |
| 170 |
func TimestampLTE(v time.Time) predicate.Timestamp { |
| 171 |
return predicate.Timestamp(sql.FieldLTE(FieldTimestamp, v)) |
| 172 |
} |
| 173 |
|
| 174 |
// HasSignature applies the HasEdge predicate on the "signature" edge. |
| 175 |
func HasSignature() predicate.Timestamp { |
| 176 |
return predicate.Timestamp(func(s *sql.Selector) { |
| 177 |
step := sqlgraph.NewStep( |
| 178 |
sqlgraph.From(Table, FieldID), |
| 179 |
sqlgraph.Edge(sqlgraph.M2O, true, SignatureTable, SignatureColumn), |
| 180 |
) |
| 181 |
sqlgraph.HasNeighbors(s, step) |
| 182 |
}) |
| 183 |
} |
| 184 |
|
| 185 |
// HasSignatureWith applies the HasEdge predicate on the "signature" edge with a given conditions (other predicates). |
| 186 |
func HasSignatureWith(preds ...predicate.Signature) predicate.Timestamp { |
| 187 |
return predicate.Timestamp(func(s *sql.Selector) { |
| 188 |
step := newSignatureStep() |
| 189 |
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { |
| 190 |
for _, p := range preds { |
| 191 |
p(s) |
| 192 |
} |
| 193 |
}) |
| 194 |
}) |
| 195 |
} |
| 196 |
|
| 197 |
// And groups predicates with the AND operator between them. |
| 198 |
func And(predicates ...predicate.Timestamp) predicate.Timestamp { |
| 199 |
return predicate.Timestamp(sql.AndPredicates(predicates...)) |
| 200 |
} |
| 201 |
|
| 202 |
// Or groups predicates with the OR operator between them. |
| 203 |
func Or(predicates ...predicate.Timestamp) predicate.Timestamp { |
| 204 |
return predicate.Timestamp(sql.OrPredicates(predicates...)) |
| 205 |
} |
| 206 |
|
| 207 |
// Not applies the not operator on the given predicate. |
| 208 |
func Not(p predicate.Timestamp) predicate.Timestamp { |
| 209 |
return predicate.Timestamp(sql.NotPredicates(p)) |
| 210 |
} |