File size: 10,849 Bytes
fea99b3 | 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 | // Code generated by ent, DO NOT EDIT.
package example1
import (
"time"
"entgo.io/ent/dialect/sql"
"github.com/openmeterio/openmeter/pkg/framework/entutils/testutils/ent1/db/predicate"
)
// ID filters vertices based on their ID field.
func ID(id string) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id string) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id string) predicate.Example1 {
return predicate.Example1(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...string) predicate.Example1 {
return predicate.Example1(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...string) predicate.Example1 {
return predicate.Example1(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id string) predicate.Example1 {
return predicate.Example1(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id string) predicate.Example1 {
return predicate.Example1(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id string) predicate.Example1 {
return predicate.Example1(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id string) predicate.Example1 {
return predicate.Example1(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Example1 {
return predicate.Example1(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Example1 {
return predicate.Example1(sql.FieldContainsFold(FieldID, id))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldDeletedAt, v))
}
// ExampleValue1 applies equality check predicate on the "example_value_1" field. It's identical to ExampleValue1EQ.
func ExampleValue1(v string) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldExampleValue1, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLTE(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.Example1 {
return predicate.Example1(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.Example1 {
return predicate.Example1(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.Example1 {
return predicate.Example1(sql.FieldNotNull(FieldDeletedAt))
}
// ExampleValue1EQ applies the EQ predicate on the "example_value_1" field.
func ExampleValue1EQ(v string) predicate.Example1 {
return predicate.Example1(sql.FieldEQ(FieldExampleValue1, v))
}
// ExampleValue1NEQ applies the NEQ predicate on the "example_value_1" field.
func ExampleValue1NEQ(v string) predicate.Example1 {
return predicate.Example1(sql.FieldNEQ(FieldExampleValue1, v))
}
// ExampleValue1In applies the In predicate on the "example_value_1" field.
func ExampleValue1In(vs ...string) predicate.Example1 {
return predicate.Example1(sql.FieldIn(FieldExampleValue1, vs...))
}
// ExampleValue1NotIn applies the NotIn predicate on the "example_value_1" field.
func ExampleValue1NotIn(vs ...string) predicate.Example1 {
return predicate.Example1(sql.FieldNotIn(FieldExampleValue1, vs...))
}
// ExampleValue1GT applies the GT predicate on the "example_value_1" field.
func ExampleValue1GT(v string) predicate.Example1 {
return predicate.Example1(sql.FieldGT(FieldExampleValue1, v))
}
// ExampleValue1GTE applies the GTE predicate on the "example_value_1" field.
func ExampleValue1GTE(v string) predicate.Example1 {
return predicate.Example1(sql.FieldGTE(FieldExampleValue1, v))
}
// ExampleValue1LT applies the LT predicate on the "example_value_1" field.
func ExampleValue1LT(v string) predicate.Example1 {
return predicate.Example1(sql.FieldLT(FieldExampleValue1, v))
}
// ExampleValue1LTE applies the LTE predicate on the "example_value_1" field.
func ExampleValue1LTE(v string) predicate.Example1 {
return predicate.Example1(sql.FieldLTE(FieldExampleValue1, v))
}
// ExampleValue1Contains applies the Contains predicate on the "example_value_1" field.
func ExampleValue1Contains(v string) predicate.Example1 {
return predicate.Example1(sql.FieldContains(FieldExampleValue1, v))
}
// ExampleValue1HasPrefix applies the HasPrefix predicate on the "example_value_1" field.
func ExampleValue1HasPrefix(v string) predicate.Example1 {
return predicate.Example1(sql.FieldHasPrefix(FieldExampleValue1, v))
}
// ExampleValue1HasSuffix applies the HasSuffix predicate on the "example_value_1" field.
func ExampleValue1HasSuffix(v string) predicate.Example1 {
return predicate.Example1(sql.FieldHasSuffix(FieldExampleValue1, v))
}
// ExampleValue1EqualFold applies the EqualFold predicate on the "example_value_1" field.
func ExampleValue1EqualFold(v string) predicate.Example1 {
return predicate.Example1(sql.FieldEqualFold(FieldExampleValue1, v))
}
// ExampleValue1ContainsFold applies the ContainsFold predicate on the "example_value_1" field.
func ExampleValue1ContainsFold(v string) predicate.Example1 {
return predicate.Example1(sql.FieldContainsFold(FieldExampleValue1, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Example1) predicate.Example1 {
return predicate.Example1(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Example1) predicate.Example1 {
return predicate.Example1(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Example1) predicate.Example1 {
return predicate.Example1(sql.NotPredicates(p))
}
|