github.com/crowdsecurity/crowdsec@v1.6.1/pkg/database/ent/bouncer/where.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package bouncer 4 5 import ( 6 "time" 7 8 "entgo.io/ent/dialect/sql" 9 "github.com/crowdsecurity/crowdsec/pkg/database/ent/predicate" 10 ) 11 12 // ID filters vertices based on their ID field. 13 func ID(id int) predicate.Bouncer { 14 return predicate.Bouncer(sql.FieldEQ(FieldID, id)) 15 } 16 17 // IDEQ applies the EQ predicate on the ID field. 18 func IDEQ(id int) predicate.Bouncer { 19 return predicate.Bouncer(sql.FieldEQ(FieldID, id)) 20 } 21 22 // IDNEQ applies the NEQ predicate on the ID field. 23 func IDNEQ(id int) predicate.Bouncer { 24 return predicate.Bouncer(sql.FieldNEQ(FieldID, id)) 25 } 26 27 // IDIn applies the In predicate on the ID field. 28 func IDIn(ids ...int) predicate.Bouncer { 29 return predicate.Bouncer(sql.FieldIn(FieldID, ids...)) 30 } 31 32 // IDNotIn applies the NotIn predicate on the ID field. 33 func IDNotIn(ids ...int) predicate.Bouncer { 34 return predicate.Bouncer(sql.FieldNotIn(FieldID, ids...)) 35 } 36 37 // IDGT applies the GT predicate on the ID field. 38 func IDGT(id int) predicate.Bouncer { 39 return predicate.Bouncer(sql.FieldGT(FieldID, id)) 40 } 41 42 // IDGTE applies the GTE predicate on the ID field. 43 func IDGTE(id int) predicate.Bouncer { 44 return predicate.Bouncer(sql.FieldGTE(FieldID, id)) 45 } 46 47 // IDLT applies the LT predicate on the ID field. 48 func IDLT(id int) predicate.Bouncer { 49 return predicate.Bouncer(sql.FieldLT(FieldID, id)) 50 } 51 52 // IDLTE applies the LTE predicate on the ID field. 53 func IDLTE(id int) predicate.Bouncer { 54 return predicate.Bouncer(sql.FieldLTE(FieldID, id)) 55 } 56 57 // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. 58 func CreatedAt(v time.Time) predicate.Bouncer { 59 return predicate.Bouncer(sql.FieldEQ(FieldCreatedAt, v)) 60 } 61 62 // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. 63 func UpdatedAt(v time.Time) predicate.Bouncer { 64 return predicate.Bouncer(sql.FieldEQ(FieldUpdatedAt, v)) 65 } 66 67 // Name applies equality check predicate on the "name" field. It's identical to NameEQ. 68 func Name(v string) predicate.Bouncer { 69 return predicate.Bouncer(sql.FieldEQ(FieldName, v)) 70 } 71 72 // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ. 73 func APIKey(v string) predicate.Bouncer { 74 return predicate.Bouncer(sql.FieldEQ(FieldAPIKey, v)) 75 } 76 77 // Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ. 78 func Revoked(v bool) predicate.Bouncer { 79 return predicate.Bouncer(sql.FieldEQ(FieldRevoked, v)) 80 } 81 82 // IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ. 83 func IPAddress(v string) predicate.Bouncer { 84 return predicate.Bouncer(sql.FieldEQ(FieldIPAddress, v)) 85 } 86 87 // Type applies equality check predicate on the "type" field. It's identical to TypeEQ. 88 func Type(v string) predicate.Bouncer { 89 return predicate.Bouncer(sql.FieldEQ(FieldType, v)) 90 } 91 92 // Version applies equality check predicate on the "version" field. It's identical to VersionEQ. 93 func Version(v string) predicate.Bouncer { 94 return predicate.Bouncer(sql.FieldEQ(FieldVersion, v)) 95 } 96 97 // Until applies equality check predicate on the "until" field. It's identical to UntilEQ. 98 func Until(v time.Time) predicate.Bouncer { 99 return predicate.Bouncer(sql.FieldEQ(FieldUntil, v)) 100 } 101 102 // LastPull applies equality check predicate on the "last_pull" field. It's identical to LastPullEQ. 103 func LastPull(v time.Time) predicate.Bouncer { 104 return predicate.Bouncer(sql.FieldEQ(FieldLastPull, v)) 105 } 106 107 // AuthType applies equality check predicate on the "auth_type" field. It's identical to AuthTypeEQ. 108 func AuthType(v string) predicate.Bouncer { 109 return predicate.Bouncer(sql.FieldEQ(FieldAuthType, v)) 110 } 111 112 // CreatedAtEQ applies the EQ predicate on the "created_at" field. 113 func CreatedAtEQ(v time.Time) predicate.Bouncer { 114 return predicate.Bouncer(sql.FieldEQ(FieldCreatedAt, v)) 115 } 116 117 // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. 118 func CreatedAtNEQ(v time.Time) predicate.Bouncer { 119 return predicate.Bouncer(sql.FieldNEQ(FieldCreatedAt, v)) 120 } 121 122 // CreatedAtIn applies the In predicate on the "created_at" field. 123 func CreatedAtIn(vs ...time.Time) predicate.Bouncer { 124 return predicate.Bouncer(sql.FieldIn(FieldCreatedAt, vs...)) 125 } 126 127 // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. 128 func CreatedAtNotIn(vs ...time.Time) predicate.Bouncer { 129 return predicate.Bouncer(sql.FieldNotIn(FieldCreatedAt, vs...)) 130 } 131 132 // CreatedAtGT applies the GT predicate on the "created_at" field. 133 func CreatedAtGT(v time.Time) predicate.Bouncer { 134 return predicate.Bouncer(sql.FieldGT(FieldCreatedAt, v)) 135 } 136 137 // CreatedAtGTE applies the GTE predicate on the "created_at" field. 138 func CreatedAtGTE(v time.Time) predicate.Bouncer { 139 return predicate.Bouncer(sql.FieldGTE(FieldCreatedAt, v)) 140 } 141 142 // CreatedAtLT applies the LT predicate on the "created_at" field. 143 func CreatedAtLT(v time.Time) predicate.Bouncer { 144 return predicate.Bouncer(sql.FieldLT(FieldCreatedAt, v)) 145 } 146 147 // CreatedAtLTE applies the LTE predicate on the "created_at" field. 148 func CreatedAtLTE(v time.Time) predicate.Bouncer { 149 return predicate.Bouncer(sql.FieldLTE(FieldCreatedAt, v)) 150 } 151 152 // CreatedAtIsNil applies the IsNil predicate on the "created_at" field. 153 func CreatedAtIsNil() predicate.Bouncer { 154 return predicate.Bouncer(sql.FieldIsNull(FieldCreatedAt)) 155 } 156 157 // CreatedAtNotNil applies the NotNil predicate on the "created_at" field. 158 func CreatedAtNotNil() predicate.Bouncer { 159 return predicate.Bouncer(sql.FieldNotNull(FieldCreatedAt)) 160 } 161 162 // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. 163 func UpdatedAtEQ(v time.Time) predicate.Bouncer { 164 return predicate.Bouncer(sql.FieldEQ(FieldUpdatedAt, v)) 165 } 166 167 // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. 168 func UpdatedAtNEQ(v time.Time) predicate.Bouncer { 169 return predicate.Bouncer(sql.FieldNEQ(FieldUpdatedAt, v)) 170 } 171 172 // UpdatedAtIn applies the In predicate on the "updated_at" field. 173 func UpdatedAtIn(vs ...time.Time) predicate.Bouncer { 174 return predicate.Bouncer(sql.FieldIn(FieldUpdatedAt, vs...)) 175 } 176 177 // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. 178 func UpdatedAtNotIn(vs ...time.Time) predicate.Bouncer { 179 return predicate.Bouncer(sql.FieldNotIn(FieldUpdatedAt, vs...)) 180 } 181 182 // UpdatedAtGT applies the GT predicate on the "updated_at" field. 183 func UpdatedAtGT(v time.Time) predicate.Bouncer { 184 return predicate.Bouncer(sql.FieldGT(FieldUpdatedAt, v)) 185 } 186 187 // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. 188 func UpdatedAtGTE(v time.Time) predicate.Bouncer { 189 return predicate.Bouncer(sql.FieldGTE(FieldUpdatedAt, v)) 190 } 191 192 // UpdatedAtLT applies the LT predicate on the "updated_at" field. 193 func UpdatedAtLT(v time.Time) predicate.Bouncer { 194 return predicate.Bouncer(sql.FieldLT(FieldUpdatedAt, v)) 195 } 196 197 // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. 198 func UpdatedAtLTE(v time.Time) predicate.Bouncer { 199 return predicate.Bouncer(sql.FieldLTE(FieldUpdatedAt, v)) 200 } 201 202 // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. 203 func UpdatedAtIsNil() predicate.Bouncer { 204 return predicate.Bouncer(sql.FieldIsNull(FieldUpdatedAt)) 205 } 206 207 // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. 208 func UpdatedAtNotNil() predicate.Bouncer { 209 return predicate.Bouncer(sql.FieldNotNull(FieldUpdatedAt)) 210 } 211 212 // NameEQ applies the EQ predicate on the "name" field. 213 func NameEQ(v string) predicate.Bouncer { 214 return predicate.Bouncer(sql.FieldEQ(FieldName, v)) 215 } 216 217 // NameNEQ applies the NEQ predicate on the "name" field. 218 func NameNEQ(v string) predicate.Bouncer { 219 return predicate.Bouncer(sql.FieldNEQ(FieldName, v)) 220 } 221 222 // NameIn applies the In predicate on the "name" field. 223 func NameIn(vs ...string) predicate.Bouncer { 224 return predicate.Bouncer(sql.FieldIn(FieldName, vs...)) 225 } 226 227 // NameNotIn applies the NotIn predicate on the "name" field. 228 func NameNotIn(vs ...string) predicate.Bouncer { 229 return predicate.Bouncer(sql.FieldNotIn(FieldName, vs...)) 230 } 231 232 // NameGT applies the GT predicate on the "name" field. 233 func NameGT(v string) predicate.Bouncer { 234 return predicate.Bouncer(sql.FieldGT(FieldName, v)) 235 } 236 237 // NameGTE applies the GTE predicate on the "name" field. 238 func NameGTE(v string) predicate.Bouncer { 239 return predicate.Bouncer(sql.FieldGTE(FieldName, v)) 240 } 241 242 // NameLT applies the LT predicate on the "name" field. 243 func NameLT(v string) predicate.Bouncer { 244 return predicate.Bouncer(sql.FieldLT(FieldName, v)) 245 } 246 247 // NameLTE applies the LTE predicate on the "name" field. 248 func NameLTE(v string) predicate.Bouncer { 249 return predicate.Bouncer(sql.FieldLTE(FieldName, v)) 250 } 251 252 // NameContains applies the Contains predicate on the "name" field. 253 func NameContains(v string) predicate.Bouncer { 254 return predicate.Bouncer(sql.FieldContains(FieldName, v)) 255 } 256 257 // NameHasPrefix applies the HasPrefix predicate on the "name" field. 258 func NameHasPrefix(v string) predicate.Bouncer { 259 return predicate.Bouncer(sql.FieldHasPrefix(FieldName, v)) 260 } 261 262 // NameHasSuffix applies the HasSuffix predicate on the "name" field. 263 func NameHasSuffix(v string) predicate.Bouncer { 264 return predicate.Bouncer(sql.FieldHasSuffix(FieldName, v)) 265 } 266 267 // NameEqualFold applies the EqualFold predicate on the "name" field. 268 func NameEqualFold(v string) predicate.Bouncer { 269 return predicate.Bouncer(sql.FieldEqualFold(FieldName, v)) 270 } 271 272 // NameContainsFold applies the ContainsFold predicate on the "name" field. 273 func NameContainsFold(v string) predicate.Bouncer { 274 return predicate.Bouncer(sql.FieldContainsFold(FieldName, v)) 275 } 276 277 // APIKeyEQ applies the EQ predicate on the "api_key" field. 278 func APIKeyEQ(v string) predicate.Bouncer { 279 return predicate.Bouncer(sql.FieldEQ(FieldAPIKey, v)) 280 } 281 282 // APIKeyNEQ applies the NEQ predicate on the "api_key" field. 283 func APIKeyNEQ(v string) predicate.Bouncer { 284 return predicate.Bouncer(sql.FieldNEQ(FieldAPIKey, v)) 285 } 286 287 // APIKeyIn applies the In predicate on the "api_key" field. 288 func APIKeyIn(vs ...string) predicate.Bouncer { 289 return predicate.Bouncer(sql.FieldIn(FieldAPIKey, vs...)) 290 } 291 292 // APIKeyNotIn applies the NotIn predicate on the "api_key" field. 293 func APIKeyNotIn(vs ...string) predicate.Bouncer { 294 return predicate.Bouncer(sql.FieldNotIn(FieldAPIKey, vs...)) 295 } 296 297 // APIKeyGT applies the GT predicate on the "api_key" field. 298 func APIKeyGT(v string) predicate.Bouncer { 299 return predicate.Bouncer(sql.FieldGT(FieldAPIKey, v)) 300 } 301 302 // APIKeyGTE applies the GTE predicate on the "api_key" field. 303 func APIKeyGTE(v string) predicate.Bouncer { 304 return predicate.Bouncer(sql.FieldGTE(FieldAPIKey, v)) 305 } 306 307 // APIKeyLT applies the LT predicate on the "api_key" field. 308 func APIKeyLT(v string) predicate.Bouncer { 309 return predicate.Bouncer(sql.FieldLT(FieldAPIKey, v)) 310 } 311 312 // APIKeyLTE applies the LTE predicate on the "api_key" field. 313 func APIKeyLTE(v string) predicate.Bouncer { 314 return predicate.Bouncer(sql.FieldLTE(FieldAPIKey, v)) 315 } 316 317 // APIKeyContains applies the Contains predicate on the "api_key" field. 318 func APIKeyContains(v string) predicate.Bouncer { 319 return predicate.Bouncer(sql.FieldContains(FieldAPIKey, v)) 320 } 321 322 // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field. 323 func APIKeyHasPrefix(v string) predicate.Bouncer { 324 return predicate.Bouncer(sql.FieldHasPrefix(FieldAPIKey, v)) 325 } 326 327 // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field. 328 func APIKeyHasSuffix(v string) predicate.Bouncer { 329 return predicate.Bouncer(sql.FieldHasSuffix(FieldAPIKey, v)) 330 } 331 332 // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field. 333 func APIKeyEqualFold(v string) predicate.Bouncer { 334 return predicate.Bouncer(sql.FieldEqualFold(FieldAPIKey, v)) 335 } 336 337 // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field. 338 func APIKeyContainsFold(v string) predicate.Bouncer { 339 return predicate.Bouncer(sql.FieldContainsFold(FieldAPIKey, v)) 340 } 341 342 // RevokedEQ applies the EQ predicate on the "revoked" field. 343 func RevokedEQ(v bool) predicate.Bouncer { 344 return predicate.Bouncer(sql.FieldEQ(FieldRevoked, v)) 345 } 346 347 // RevokedNEQ applies the NEQ predicate on the "revoked" field. 348 func RevokedNEQ(v bool) predicate.Bouncer { 349 return predicate.Bouncer(sql.FieldNEQ(FieldRevoked, v)) 350 } 351 352 // IPAddressEQ applies the EQ predicate on the "ip_address" field. 353 func IPAddressEQ(v string) predicate.Bouncer { 354 return predicate.Bouncer(sql.FieldEQ(FieldIPAddress, v)) 355 } 356 357 // IPAddressNEQ applies the NEQ predicate on the "ip_address" field. 358 func IPAddressNEQ(v string) predicate.Bouncer { 359 return predicate.Bouncer(sql.FieldNEQ(FieldIPAddress, v)) 360 } 361 362 // IPAddressIn applies the In predicate on the "ip_address" field. 363 func IPAddressIn(vs ...string) predicate.Bouncer { 364 return predicate.Bouncer(sql.FieldIn(FieldIPAddress, vs...)) 365 } 366 367 // IPAddressNotIn applies the NotIn predicate on the "ip_address" field. 368 func IPAddressNotIn(vs ...string) predicate.Bouncer { 369 return predicate.Bouncer(sql.FieldNotIn(FieldIPAddress, vs...)) 370 } 371 372 // IPAddressGT applies the GT predicate on the "ip_address" field. 373 func IPAddressGT(v string) predicate.Bouncer { 374 return predicate.Bouncer(sql.FieldGT(FieldIPAddress, v)) 375 } 376 377 // IPAddressGTE applies the GTE predicate on the "ip_address" field. 378 func IPAddressGTE(v string) predicate.Bouncer { 379 return predicate.Bouncer(sql.FieldGTE(FieldIPAddress, v)) 380 } 381 382 // IPAddressLT applies the LT predicate on the "ip_address" field. 383 func IPAddressLT(v string) predicate.Bouncer { 384 return predicate.Bouncer(sql.FieldLT(FieldIPAddress, v)) 385 } 386 387 // IPAddressLTE applies the LTE predicate on the "ip_address" field. 388 func IPAddressLTE(v string) predicate.Bouncer { 389 return predicate.Bouncer(sql.FieldLTE(FieldIPAddress, v)) 390 } 391 392 // IPAddressContains applies the Contains predicate on the "ip_address" field. 393 func IPAddressContains(v string) predicate.Bouncer { 394 return predicate.Bouncer(sql.FieldContains(FieldIPAddress, v)) 395 } 396 397 // IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field. 398 func IPAddressHasPrefix(v string) predicate.Bouncer { 399 return predicate.Bouncer(sql.FieldHasPrefix(FieldIPAddress, v)) 400 } 401 402 // IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field. 403 func IPAddressHasSuffix(v string) predicate.Bouncer { 404 return predicate.Bouncer(sql.FieldHasSuffix(FieldIPAddress, v)) 405 } 406 407 // IPAddressIsNil applies the IsNil predicate on the "ip_address" field. 408 func IPAddressIsNil() predicate.Bouncer { 409 return predicate.Bouncer(sql.FieldIsNull(FieldIPAddress)) 410 } 411 412 // IPAddressNotNil applies the NotNil predicate on the "ip_address" field. 413 func IPAddressNotNil() predicate.Bouncer { 414 return predicate.Bouncer(sql.FieldNotNull(FieldIPAddress)) 415 } 416 417 // IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field. 418 func IPAddressEqualFold(v string) predicate.Bouncer { 419 return predicate.Bouncer(sql.FieldEqualFold(FieldIPAddress, v)) 420 } 421 422 // IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field. 423 func IPAddressContainsFold(v string) predicate.Bouncer { 424 return predicate.Bouncer(sql.FieldContainsFold(FieldIPAddress, v)) 425 } 426 427 // TypeEQ applies the EQ predicate on the "type" field. 428 func TypeEQ(v string) predicate.Bouncer { 429 return predicate.Bouncer(sql.FieldEQ(FieldType, v)) 430 } 431 432 // TypeNEQ applies the NEQ predicate on the "type" field. 433 func TypeNEQ(v string) predicate.Bouncer { 434 return predicate.Bouncer(sql.FieldNEQ(FieldType, v)) 435 } 436 437 // TypeIn applies the In predicate on the "type" field. 438 func TypeIn(vs ...string) predicate.Bouncer { 439 return predicate.Bouncer(sql.FieldIn(FieldType, vs...)) 440 } 441 442 // TypeNotIn applies the NotIn predicate on the "type" field. 443 func TypeNotIn(vs ...string) predicate.Bouncer { 444 return predicate.Bouncer(sql.FieldNotIn(FieldType, vs...)) 445 } 446 447 // TypeGT applies the GT predicate on the "type" field. 448 func TypeGT(v string) predicate.Bouncer { 449 return predicate.Bouncer(sql.FieldGT(FieldType, v)) 450 } 451 452 // TypeGTE applies the GTE predicate on the "type" field. 453 func TypeGTE(v string) predicate.Bouncer { 454 return predicate.Bouncer(sql.FieldGTE(FieldType, v)) 455 } 456 457 // TypeLT applies the LT predicate on the "type" field. 458 func TypeLT(v string) predicate.Bouncer { 459 return predicate.Bouncer(sql.FieldLT(FieldType, v)) 460 } 461 462 // TypeLTE applies the LTE predicate on the "type" field. 463 func TypeLTE(v string) predicate.Bouncer { 464 return predicate.Bouncer(sql.FieldLTE(FieldType, v)) 465 } 466 467 // TypeContains applies the Contains predicate on the "type" field. 468 func TypeContains(v string) predicate.Bouncer { 469 return predicate.Bouncer(sql.FieldContains(FieldType, v)) 470 } 471 472 // TypeHasPrefix applies the HasPrefix predicate on the "type" field. 473 func TypeHasPrefix(v string) predicate.Bouncer { 474 return predicate.Bouncer(sql.FieldHasPrefix(FieldType, v)) 475 } 476 477 // TypeHasSuffix applies the HasSuffix predicate on the "type" field. 478 func TypeHasSuffix(v string) predicate.Bouncer { 479 return predicate.Bouncer(sql.FieldHasSuffix(FieldType, v)) 480 } 481 482 // TypeIsNil applies the IsNil predicate on the "type" field. 483 func TypeIsNil() predicate.Bouncer { 484 return predicate.Bouncer(sql.FieldIsNull(FieldType)) 485 } 486 487 // TypeNotNil applies the NotNil predicate on the "type" field. 488 func TypeNotNil() predicate.Bouncer { 489 return predicate.Bouncer(sql.FieldNotNull(FieldType)) 490 } 491 492 // TypeEqualFold applies the EqualFold predicate on the "type" field. 493 func TypeEqualFold(v string) predicate.Bouncer { 494 return predicate.Bouncer(sql.FieldEqualFold(FieldType, v)) 495 } 496 497 // TypeContainsFold applies the ContainsFold predicate on the "type" field. 498 func TypeContainsFold(v string) predicate.Bouncer { 499 return predicate.Bouncer(sql.FieldContainsFold(FieldType, v)) 500 } 501 502 // VersionEQ applies the EQ predicate on the "version" field. 503 func VersionEQ(v string) predicate.Bouncer { 504 return predicate.Bouncer(sql.FieldEQ(FieldVersion, v)) 505 } 506 507 // VersionNEQ applies the NEQ predicate on the "version" field. 508 func VersionNEQ(v string) predicate.Bouncer { 509 return predicate.Bouncer(sql.FieldNEQ(FieldVersion, v)) 510 } 511 512 // VersionIn applies the In predicate on the "version" field. 513 func VersionIn(vs ...string) predicate.Bouncer { 514 return predicate.Bouncer(sql.FieldIn(FieldVersion, vs...)) 515 } 516 517 // VersionNotIn applies the NotIn predicate on the "version" field. 518 func VersionNotIn(vs ...string) predicate.Bouncer { 519 return predicate.Bouncer(sql.FieldNotIn(FieldVersion, vs...)) 520 } 521 522 // VersionGT applies the GT predicate on the "version" field. 523 func VersionGT(v string) predicate.Bouncer { 524 return predicate.Bouncer(sql.FieldGT(FieldVersion, v)) 525 } 526 527 // VersionGTE applies the GTE predicate on the "version" field. 528 func VersionGTE(v string) predicate.Bouncer { 529 return predicate.Bouncer(sql.FieldGTE(FieldVersion, v)) 530 } 531 532 // VersionLT applies the LT predicate on the "version" field. 533 func VersionLT(v string) predicate.Bouncer { 534 return predicate.Bouncer(sql.FieldLT(FieldVersion, v)) 535 } 536 537 // VersionLTE applies the LTE predicate on the "version" field. 538 func VersionLTE(v string) predicate.Bouncer { 539 return predicate.Bouncer(sql.FieldLTE(FieldVersion, v)) 540 } 541 542 // VersionContains applies the Contains predicate on the "version" field. 543 func VersionContains(v string) predicate.Bouncer { 544 return predicate.Bouncer(sql.FieldContains(FieldVersion, v)) 545 } 546 547 // VersionHasPrefix applies the HasPrefix predicate on the "version" field. 548 func VersionHasPrefix(v string) predicate.Bouncer { 549 return predicate.Bouncer(sql.FieldHasPrefix(FieldVersion, v)) 550 } 551 552 // VersionHasSuffix applies the HasSuffix predicate on the "version" field. 553 func VersionHasSuffix(v string) predicate.Bouncer { 554 return predicate.Bouncer(sql.FieldHasSuffix(FieldVersion, v)) 555 } 556 557 // VersionIsNil applies the IsNil predicate on the "version" field. 558 func VersionIsNil() predicate.Bouncer { 559 return predicate.Bouncer(sql.FieldIsNull(FieldVersion)) 560 } 561 562 // VersionNotNil applies the NotNil predicate on the "version" field. 563 func VersionNotNil() predicate.Bouncer { 564 return predicate.Bouncer(sql.FieldNotNull(FieldVersion)) 565 } 566 567 // VersionEqualFold applies the EqualFold predicate on the "version" field. 568 func VersionEqualFold(v string) predicate.Bouncer { 569 return predicate.Bouncer(sql.FieldEqualFold(FieldVersion, v)) 570 } 571 572 // VersionContainsFold applies the ContainsFold predicate on the "version" field. 573 func VersionContainsFold(v string) predicate.Bouncer { 574 return predicate.Bouncer(sql.FieldContainsFold(FieldVersion, v)) 575 } 576 577 // UntilEQ applies the EQ predicate on the "until" field. 578 func UntilEQ(v time.Time) predicate.Bouncer { 579 return predicate.Bouncer(sql.FieldEQ(FieldUntil, v)) 580 } 581 582 // UntilNEQ applies the NEQ predicate on the "until" field. 583 func UntilNEQ(v time.Time) predicate.Bouncer { 584 return predicate.Bouncer(sql.FieldNEQ(FieldUntil, v)) 585 } 586 587 // UntilIn applies the In predicate on the "until" field. 588 func UntilIn(vs ...time.Time) predicate.Bouncer { 589 return predicate.Bouncer(sql.FieldIn(FieldUntil, vs...)) 590 } 591 592 // UntilNotIn applies the NotIn predicate on the "until" field. 593 func UntilNotIn(vs ...time.Time) predicate.Bouncer { 594 return predicate.Bouncer(sql.FieldNotIn(FieldUntil, vs...)) 595 } 596 597 // UntilGT applies the GT predicate on the "until" field. 598 func UntilGT(v time.Time) predicate.Bouncer { 599 return predicate.Bouncer(sql.FieldGT(FieldUntil, v)) 600 } 601 602 // UntilGTE applies the GTE predicate on the "until" field. 603 func UntilGTE(v time.Time) predicate.Bouncer { 604 return predicate.Bouncer(sql.FieldGTE(FieldUntil, v)) 605 } 606 607 // UntilLT applies the LT predicate on the "until" field. 608 func UntilLT(v time.Time) predicate.Bouncer { 609 return predicate.Bouncer(sql.FieldLT(FieldUntil, v)) 610 } 611 612 // UntilLTE applies the LTE predicate on the "until" field. 613 func UntilLTE(v time.Time) predicate.Bouncer { 614 return predicate.Bouncer(sql.FieldLTE(FieldUntil, v)) 615 } 616 617 // UntilIsNil applies the IsNil predicate on the "until" field. 618 func UntilIsNil() predicate.Bouncer { 619 return predicate.Bouncer(sql.FieldIsNull(FieldUntil)) 620 } 621 622 // UntilNotNil applies the NotNil predicate on the "until" field. 623 func UntilNotNil() predicate.Bouncer { 624 return predicate.Bouncer(sql.FieldNotNull(FieldUntil)) 625 } 626 627 // LastPullEQ applies the EQ predicate on the "last_pull" field. 628 func LastPullEQ(v time.Time) predicate.Bouncer { 629 return predicate.Bouncer(sql.FieldEQ(FieldLastPull, v)) 630 } 631 632 // LastPullNEQ applies the NEQ predicate on the "last_pull" field. 633 func LastPullNEQ(v time.Time) predicate.Bouncer { 634 return predicate.Bouncer(sql.FieldNEQ(FieldLastPull, v)) 635 } 636 637 // LastPullIn applies the In predicate on the "last_pull" field. 638 func LastPullIn(vs ...time.Time) predicate.Bouncer { 639 return predicate.Bouncer(sql.FieldIn(FieldLastPull, vs...)) 640 } 641 642 // LastPullNotIn applies the NotIn predicate on the "last_pull" field. 643 func LastPullNotIn(vs ...time.Time) predicate.Bouncer { 644 return predicate.Bouncer(sql.FieldNotIn(FieldLastPull, vs...)) 645 } 646 647 // LastPullGT applies the GT predicate on the "last_pull" field. 648 func LastPullGT(v time.Time) predicate.Bouncer { 649 return predicate.Bouncer(sql.FieldGT(FieldLastPull, v)) 650 } 651 652 // LastPullGTE applies the GTE predicate on the "last_pull" field. 653 func LastPullGTE(v time.Time) predicate.Bouncer { 654 return predicate.Bouncer(sql.FieldGTE(FieldLastPull, v)) 655 } 656 657 // LastPullLT applies the LT predicate on the "last_pull" field. 658 func LastPullLT(v time.Time) predicate.Bouncer { 659 return predicate.Bouncer(sql.FieldLT(FieldLastPull, v)) 660 } 661 662 // LastPullLTE applies the LTE predicate on the "last_pull" field. 663 func LastPullLTE(v time.Time) predicate.Bouncer { 664 return predicate.Bouncer(sql.FieldLTE(FieldLastPull, v)) 665 } 666 667 // AuthTypeEQ applies the EQ predicate on the "auth_type" field. 668 func AuthTypeEQ(v string) predicate.Bouncer { 669 return predicate.Bouncer(sql.FieldEQ(FieldAuthType, v)) 670 } 671 672 // AuthTypeNEQ applies the NEQ predicate on the "auth_type" field. 673 func AuthTypeNEQ(v string) predicate.Bouncer { 674 return predicate.Bouncer(sql.FieldNEQ(FieldAuthType, v)) 675 } 676 677 // AuthTypeIn applies the In predicate on the "auth_type" field. 678 func AuthTypeIn(vs ...string) predicate.Bouncer { 679 return predicate.Bouncer(sql.FieldIn(FieldAuthType, vs...)) 680 } 681 682 // AuthTypeNotIn applies the NotIn predicate on the "auth_type" field. 683 func AuthTypeNotIn(vs ...string) predicate.Bouncer { 684 return predicate.Bouncer(sql.FieldNotIn(FieldAuthType, vs...)) 685 } 686 687 // AuthTypeGT applies the GT predicate on the "auth_type" field. 688 func AuthTypeGT(v string) predicate.Bouncer { 689 return predicate.Bouncer(sql.FieldGT(FieldAuthType, v)) 690 } 691 692 // AuthTypeGTE applies the GTE predicate on the "auth_type" field. 693 func AuthTypeGTE(v string) predicate.Bouncer { 694 return predicate.Bouncer(sql.FieldGTE(FieldAuthType, v)) 695 } 696 697 // AuthTypeLT applies the LT predicate on the "auth_type" field. 698 func AuthTypeLT(v string) predicate.Bouncer { 699 return predicate.Bouncer(sql.FieldLT(FieldAuthType, v)) 700 } 701 702 // AuthTypeLTE applies the LTE predicate on the "auth_type" field. 703 func AuthTypeLTE(v string) predicate.Bouncer { 704 return predicate.Bouncer(sql.FieldLTE(FieldAuthType, v)) 705 } 706 707 // AuthTypeContains applies the Contains predicate on the "auth_type" field. 708 func AuthTypeContains(v string) predicate.Bouncer { 709 return predicate.Bouncer(sql.FieldContains(FieldAuthType, v)) 710 } 711 712 // AuthTypeHasPrefix applies the HasPrefix predicate on the "auth_type" field. 713 func AuthTypeHasPrefix(v string) predicate.Bouncer { 714 return predicate.Bouncer(sql.FieldHasPrefix(FieldAuthType, v)) 715 } 716 717 // AuthTypeHasSuffix applies the HasSuffix predicate on the "auth_type" field. 718 func AuthTypeHasSuffix(v string) predicate.Bouncer { 719 return predicate.Bouncer(sql.FieldHasSuffix(FieldAuthType, v)) 720 } 721 722 // AuthTypeEqualFold applies the EqualFold predicate on the "auth_type" field. 723 func AuthTypeEqualFold(v string) predicate.Bouncer { 724 return predicate.Bouncer(sql.FieldEqualFold(FieldAuthType, v)) 725 } 726 727 // AuthTypeContainsFold applies the ContainsFold predicate on the "auth_type" field. 728 func AuthTypeContainsFold(v string) predicate.Bouncer { 729 return predicate.Bouncer(sql.FieldContainsFold(FieldAuthType, v)) 730 } 731 732 // And groups predicates with the AND operator between them. 733 func And(predicates ...predicate.Bouncer) predicate.Bouncer { 734 return predicate.Bouncer(sql.AndPredicates(predicates...)) 735 } 736 737 // Or groups predicates with the OR operator between them. 738 func Or(predicates ...predicate.Bouncer) predicate.Bouncer { 739 return predicate.Bouncer(sql.OrPredicates(predicates...)) 740 } 741 742 // Not applies the not operator on the given predicate. 743 func Not(p predicate.Bouncer) predicate.Bouncer { 744 return predicate.Bouncer(sql.NotPredicates(p)) 745 }