github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/chainbase/where.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package chainbase 4 5 import ( 6 "entgo.io/ent/dialect/sql" 7 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/predicate" 8 "github.com/google/uuid" 9 ) 10 11 // ID filters vertices based on their ID field. 12 func ID(id uint32) predicate.ChainBase { 13 return predicate.ChainBase(func(s *sql.Selector) { 14 s.Where(sql.EQ(s.C(FieldID), id)) 15 }) 16 } 17 18 // IDEQ applies the EQ predicate on the ID field. 19 func IDEQ(id uint32) predicate.ChainBase { 20 return predicate.ChainBase(func(s *sql.Selector) { 21 s.Where(sql.EQ(s.C(FieldID), id)) 22 }) 23 } 24 25 // IDNEQ applies the NEQ predicate on the ID field. 26 func IDNEQ(id uint32) predicate.ChainBase { 27 return predicate.ChainBase(func(s *sql.Selector) { 28 s.Where(sql.NEQ(s.C(FieldID), id)) 29 }) 30 } 31 32 // IDIn applies the In predicate on the ID field. 33 func IDIn(ids ...uint32) predicate.ChainBase { 34 return predicate.ChainBase(func(s *sql.Selector) { 35 v := make([]interface{}, len(ids)) 36 for i := range v { 37 v[i] = ids[i] 38 } 39 s.Where(sql.In(s.C(FieldID), v...)) 40 }) 41 } 42 43 // IDNotIn applies the NotIn predicate on the ID field. 44 func IDNotIn(ids ...uint32) predicate.ChainBase { 45 return predicate.ChainBase(func(s *sql.Selector) { 46 v := make([]interface{}, len(ids)) 47 for i := range v { 48 v[i] = ids[i] 49 } 50 s.Where(sql.NotIn(s.C(FieldID), v...)) 51 }) 52 } 53 54 // IDGT applies the GT predicate on the ID field. 55 func IDGT(id uint32) predicate.ChainBase { 56 return predicate.ChainBase(func(s *sql.Selector) { 57 s.Where(sql.GT(s.C(FieldID), id)) 58 }) 59 } 60 61 // IDGTE applies the GTE predicate on the ID field. 62 func IDGTE(id uint32) predicate.ChainBase { 63 return predicate.ChainBase(func(s *sql.Selector) { 64 s.Where(sql.GTE(s.C(FieldID), id)) 65 }) 66 } 67 68 // IDLT applies the LT predicate on the ID field. 69 func IDLT(id uint32) predicate.ChainBase { 70 return predicate.ChainBase(func(s *sql.Selector) { 71 s.Where(sql.LT(s.C(FieldID), id)) 72 }) 73 } 74 75 // IDLTE applies the LTE predicate on the ID field. 76 func IDLTE(id uint32) predicate.ChainBase { 77 return predicate.ChainBase(func(s *sql.Selector) { 78 s.Where(sql.LTE(s.C(FieldID), id)) 79 }) 80 } 81 82 // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. 83 func CreatedAt(v uint32) predicate.ChainBase { 84 return predicate.ChainBase(func(s *sql.Selector) { 85 s.Where(sql.EQ(s.C(FieldCreatedAt), v)) 86 }) 87 } 88 89 // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. 90 func UpdatedAt(v uint32) predicate.ChainBase { 91 return predicate.ChainBase(func(s *sql.Selector) { 92 s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) 93 }) 94 } 95 96 // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. 97 func DeletedAt(v uint32) predicate.ChainBase { 98 return predicate.ChainBase(func(s *sql.Selector) { 99 s.Where(sql.EQ(s.C(FieldDeletedAt), v)) 100 }) 101 } 102 103 // EntID applies equality check predicate on the "ent_id" field. It's identical to EntIDEQ. 104 func EntID(v uuid.UUID) predicate.ChainBase { 105 return predicate.ChainBase(func(s *sql.Selector) { 106 s.Where(sql.EQ(s.C(FieldEntID), v)) 107 }) 108 } 109 110 // Name applies equality check predicate on the "name" field. It's identical to NameEQ. 111 func Name(v string) predicate.ChainBase { 112 return predicate.ChainBase(func(s *sql.Selector) { 113 s.Where(sql.EQ(s.C(FieldName), v)) 114 }) 115 } 116 117 // Logo applies equality check predicate on the "logo" field. It's identical to LogoEQ. 118 func Logo(v string) predicate.ChainBase { 119 return predicate.ChainBase(func(s *sql.Selector) { 120 s.Where(sql.EQ(s.C(FieldLogo), v)) 121 }) 122 } 123 124 // NativeUnit applies equality check predicate on the "native_unit" field. It's identical to NativeUnitEQ. 125 func NativeUnit(v string) predicate.ChainBase { 126 return predicate.ChainBase(func(s *sql.Selector) { 127 s.Where(sql.EQ(s.C(FieldNativeUnit), v)) 128 }) 129 } 130 131 // AtomicUnit applies equality check predicate on the "atomic_unit" field. It's identical to AtomicUnitEQ. 132 func AtomicUnit(v string) predicate.ChainBase { 133 return predicate.ChainBase(func(s *sql.Selector) { 134 s.Where(sql.EQ(s.C(FieldAtomicUnit), v)) 135 }) 136 } 137 138 // UnitExp applies equality check predicate on the "unit_exp" field. It's identical to UnitExpEQ. 139 func UnitExp(v uint32) predicate.ChainBase { 140 return predicate.ChainBase(func(s *sql.Selector) { 141 s.Where(sql.EQ(s.C(FieldUnitExp), v)) 142 }) 143 } 144 145 // Env applies equality check predicate on the "env" field. It's identical to EnvEQ. 146 func Env(v string) predicate.ChainBase { 147 return predicate.ChainBase(func(s *sql.Selector) { 148 s.Where(sql.EQ(s.C(FieldEnv), v)) 149 }) 150 } 151 152 // ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ. 153 func ChainID(v string) predicate.ChainBase { 154 return predicate.ChainBase(func(s *sql.Selector) { 155 s.Where(sql.EQ(s.C(FieldChainID), v)) 156 }) 157 } 158 159 // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ. 160 func Nickname(v string) predicate.ChainBase { 161 return predicate.ChainBase(func(s *sql.Selector) { 162 s.Where(sql.EQ(s.C(FieldNickname), v)) 163 }) 164 } 165 166 // GasType applies equality check predicate on the "gas_type" field. It's identical to GasTypeEQ. 167 func GasType(v string) predicate.ChainBase { 168 return predicate.ChainBase(func(s *sql.Selector) { 169 s.Where(sql.EQ(s.C(FieldGasType), v)) 170 }) 171 } 172 173 // CreatedAtEQ applies the EQ predicate on the "created_at" field. 174 func CreatedAtEQ(v uint32) predicate.ChainBase { 175 return predicate.ChainBase(func(s *sql.Selector) { 176 s.Where(sql.EQ(s.C(FieldCreatedAt), v)) 177 }) 178 } 179 180 // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. 181 func CreatedAtNEQ(v uint32) predicate.ChainBase { 182 return predicate.ChainBase(func(s *sql.Selector) { 183 s.Where(sql.NEQ(s.C(FieldCreatedAt), v)) 184 }) 185 } 186 187 // CreatedAtIn applies the In predicate on the "created_at" field. 188 func CreatedAtIn(vs ...uint32) predicate.ChainBase { 189 v := make([]interface{}, len(vs)) 190 for i := range v { 191 v[i] = vs[i] 192 } 193 return predicate.ChainBase(func(s *sql.Selector) { 194 s.Where(sql.In(s.C(FieldCreatedAt), v...)) 195 }) 196 } 197 198 // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. 199 func CreatedAtNotIn(vs ...uint32) predicate.ChainBase { 200 v := make([]interface{}, len(vs)) 201 for i := range v { 202 v[i] = vs[i] 203 } 204 return predicate.ChainBase(func(s *sql.Selector) { 205 s.Where(sql.NotIn(s.C(FieldCreatedAt), v...)) 206 }) 207 } 208 209 // CreatedAtGT applies the GT predicate on the "created_at" field. 210 func CreatedAtGT(v uint32) predicate.ChainBase { 211 return predicate.ChainBase(func(s *sql.Selector) { 212 s.Where(sql.GT(s.C(FieldCreatedAt), v)) 213 }) 214 } 215 216 // CreatedAtGTE applies the GTE predicate on the "created_at" field. 217 func CreatedAtGTE(v uint32) predicate.ChainBase { 218 return predicate.ChainBase(func(s *sql.Selector) { 219 s.Where(sql.GTE(s.C(FieldCreatedAt), v)) 220 }) 221 } 222 223 // CreatedAtLT applies the LT predicate on the "created_at" field. 224 func CreatedAtLT(v uint32) predicate.ChainBase { 225 return predicate.ChainBase(func(s *sql.Selector) { 226 s.Where(sql.LT(s.C(FieldCreatedAt), v)) 227 }) 228 } 229 230 // CreatedAtLTE applies the LTE predicate on the "created_at" field. 231 func CreatedAtLTE(v uint32) predicate.ChainBase { 232 return predicate.ChainBase(func(s *sql.Selector) { 233 s.Where(sql.LTE(s.C(FieldCreatedAt), v)) 234 }) 235 } 236 237 // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. 238 func UpdatedAtEQ(v uint32) predicate.ChainBase { 239 return predicate.ChainBase(func(s *sql.Selector) { 240 s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) 241 }) 242 } 243 244 // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. 245 func UpdatedAtNEQ(v uint32) predicate.ChainBase { 246 return predicate.ChainBase(func(s *sql.Selector) { 247 s.Where(sql.NEQ(s.C(FieldUpdatedAt), v)) 248 }) 249 } 250 251 // UpdatedAtIn applies the In predicate on the "updated_at" field. 252 func UpdatedAtIn(vs ...uint32) predicate.ChainBase { 253 v := make([]interface{}, len(vs)) 254 for i := range v { 255 v[i] = vs[i] 256 } 257 return predicate.ChainBase(func(s *sql.Selector) { 258 s.Where(sql.In(s.C(FieldUpdatedAt), v...)) 259 }) 260 } 261 262 // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. 263 func UpdatedAtNotIn(vs ...uint32) predicate.ChainBase { 264 v := make([]interface{}, len(vs)) 265 for i := range v { 266 v[i] = vs[i] 267 } 268 return predicate.ChainBase(func(s *sql.Selector) { 269 s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...)) 270 }) 271 } 272 273 // UpdatedAtGT applies the GT predicate on the "updated_at" field. 274 func UpdatedAtGT(v uint32) predicate.ChainBase { 275 return predicate.ChainBase(func(s *sql.Selector) { 276 s.Where(sql.GT(s.C(FieldUpdatedAt), v)) 277 }) 278 } 279 280 // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. 281 func UpdatedAtGTE(v uint32) predicate.ChainBase { 282 return predicate.ChainBase(func(s *sql.Selector) { 283 s.Where(sql.GTE(s.C(FieldUpdatedAt), v)) 284 }) 285 } 286 287 // UpdatedAtLT applies the LT predicate on the "updated_at" field. 288 func UpdatedAtLT(v uint32) predicate.ChainBase { 289 return predicate.ChainBase(func(s *sql.Selector) { 290 s.Where(sql.LT(s.C(FieldUpdatedAt), v)) 291 }) 292 } 293 294 // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. 295 func UpdatedAtLTE(v uint32) predicate.ChainBase { 296 return predicate.ChainBase(func(s *sql.Selector) { 297 s.Where(sql.LTE(s.C(FieldUpdatedAt), v)) 298 }) 299 } 300 301 // DeletedAtEQ applies the EQ predicate on the "deleted_at" field. 302 func DeletedAtEQ(v uint32) predicate.ChainBase { 303 return predicate.ChainBase(func(s *sql.Selector) { 304 s.Where(sql.EQ(s.C(FieldDeletedAt), v)) 305 }) 306 } 307 308 // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. 309 func DeletedAtNEQ(v uint32) predicate.ChainBase { 310 return predicate.ChainBase(func(s *sql.Selector) { 311 s.Where(sql.NEQ(s.C(FieldDeletedAt), v)) 312 }) 313 } 314 315 // DeletedAtIn applies the In predicate on the "deleted_at" field. 316 func DeletedAtIn(vs ...uint32) predicate.ChainBase { 317 v := make([]interface{}, len(vs)) 318 for i := range v { 319 v[i] = vs[i] 320 } 321 return predicate.ChainBase(func(s *sql.Selector) { 322 s.Where(sql.In(s.C(FieldDeletedAt), v...)) 323 }) 324 } 325 326 // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. 327 func DeletedAtNotIn(vs ...uint32) predicate.ChainBase { 328 v := make([]interface{}, len(vs)) 329 for i := range v { 330 v[i] = vs[i] 331 } 332 return predicate.ChainBase(func(s *sql.Selector) { 333 s.Where(sql.NotIn(s.C(FieldDeletedAt), v...)) 334 }) 335 } 336 337 // DeletedAtGT applies the GT predicate on the "deleted_at" field. 338 func DeletedAtGT(v uint32) predicate.ChainBase { 339 return predicate.ChainBase(func(s *sql.Selector) { 340 s.Where(sql.GT(s.C(FieldDeletedAt), v)) 341 }) 342 } 343 344 // DeletedAtGTE applies the GTE predicate on the "deleted_at" field. 345 func DeletedAtGTE(v uint32) predicate.ChainBase { 346 return predicate.ChainBase(func(s *sql.Selector) { 347 s.Where(sql.GTE(s.C(FieldDeletedAt), v)) 348 }) 349 } 350 351 // DeletedAtLT applies the LT predicate on the "deleted_at" field. 352 func DeletedAtLT(v uint32) predicate.ChainBase { 353 return predicate.ChainBase(func(s *sql.Selector) { 354 s.Where(sql.LT(s.C(FieldDeletedAt), v)) 355 }) 356 } 357 358 // DeletedAtLTE applies the LTE predicate on the "deleted_at" field. 359 func DeletedAtLTE(v uint32) predicate.ChainBase { 360 return predicate.ChainBase(func(s *sql.Selector) { 361 s.Where(sql.LTE(s.C(FieldDeletedAt), v)) 362 }) 363 } 364 365 // EntIDEQ applies the EQ predicate on the "ent_id" field. 366 func EntIDEQ(v uuid.UUID) predicate.ChainBase { 367 return predicate.ChainBase(func(s *sql.Selector) { 368 s.Where(sql.EQ(s.C(FieldEntID), v)) 369 }) 370 } 371 372 // EntIDNEQ applies the NEQ predicate on the "ent_id" field. 373 func EntIDNEQ(v uuid.UUID) predicate.ChainBase { 374 return predicate.ChainBase(func(s *sql.Selector) { 375 s.Where(sql.NEQ(s.C(FieldEntID), v)) 376 }) 377 } 378 379 // EntIDIn applies the In predicate on the "ent_id" field. 380 func EntIDIn(vs ...uuid.UUID) predicate.ChainBase { 381 v := make([]interface{}, len(vs)) 382 for i := range v { 383 v[i] = vs[i] 384 } 385 return predicate.ChainBase(func(s *sql.Selector) { 386 s.Where(sql.In(s.C(FieldEntID), v...)) 387 }) 388 } 389 390 // EntIDNotIn applies the NotIn predicate on the "ent_id" field. 391 func EntIDNotIn(vs ...uuid.UUID) predicate.ChainBase { 392 v := make([]interface{}, len(vs)) 393 for i := range v { 394 v[i] = vs[i] 395 } 396 return predicate.ChainBase(func(s *sql.Selector) { 397 s.Where(sql.NotIn(s.C(FieldEntID), v...)) 398 }) 399 } 400 401 // EntIDGT applies the GT predicate on the "ent_id" field. 402 func EntIDGT(v uuid.UUID) predicate.ChainBase { 403 return predicate.ChainBase(func(s *sql.Selector) { 404 s.Where(sql.GT(s.C(FieldEntID), v)) 405 }) 406 } 407 408 // EntIDGTE applies the GTE predicate on the "ent_id" field. 409 func EntIDGTE(v uuid.UUID) predicate.ChainBase { 410 return predicate.ChainBase(func(s *sql.Selector) { 411 s.Where(sql.GTE(s.C(FieldEntID), v)) 412 }) 413 } 414 415 // EntIDLT applies the LT predicate on the "ent_id" field. 416 func EntIDLT(v uuid.UUID) predicate.ChainBase { 417 return predicate.ChainBase(func(s *sql.Selector) { 418 s.Where(sql.LT(s.C(FieldEntID), v)) 419 }) 420 } 421 422 // EntIDLTE applies the LTE predicate on the "ent_id" field. 423 func EntIDLTE(v uuid.UUID) predicate.ChainBase { 424 return predicate.ChainBase(func(s *sql.Selector) { 425 s.Where(sql.LTE(s.C(FieldEntID), v)) 426 }) 427 } 428 429 // NameEQ applies the EQ predicate on the "name" field. 430 func NameEQ(v string) predicate.ChainBase { 431 return predicate.ChainBase(func(s *sql.Selector) { 432 s.Where(sql.EQ(s.C(FieldName), v)) 433 }) 434 } 435 436 // NameNEQ applies the NEQ predicate on the "name" field. 437 func NameNEQ(v string) predicate.ChainBase { 438 return predicate.ChainBase(func(s *sql.Selector) { 439 s.Where(sql.NEQ(s.C(FieldName), v)) 440 }) 441 } 442 443 // NameIn applies the In predicate on the "name" field. 444 func NameIn(vs ...string) predicate.ChainBase { 445 v := make([]interface{}, len(vs)) 446 for i := range v { 447 v[i] = vs[i] 448 } 449 return predicate.ChainBase(func(s *sql.Selector) { 450 s.Where(sql.In(s.C(FieldName), v...)) 451 }) 452 } 453 454 // NameNotIn applies the NotIn predicate on the "name" field. 455 func NameNotIn(vs ...string) predicate.ChainBase { 456 v := make([]interface{}, len(vs)) 457 for i := range v { 458 v[i] = vs[i] 459 } 460 return predicate.ChainBase(func(s *sql.Selector) { 461 s.Where(sql.NotIn(s.C(FieldName), v...)) 462 }) 463 } 464 465 // NameGT applies the GT predicate on the "name" field. 466 func NameGT(v string) predicate.ChainBase { 467 return predicate.ChainBase(func(s *sql.Selector) { 468 s.Where(sql.GT(s.C(FieldName), v)) 469 }) 470 } 471 472 // NameGTE applies the GTE predicate on the "name" field. 473 func NameGTE(v string) predicate.ChainBase { 474 return predicate.ChainBase(func(s *sql.Selector) { 475 s.Where(sql.GTE(s.C(FieldName), v)) 476 }) 477 } 478 479 // NameLT applies the LT predicate on the "name" field. 480 func NameLT(v string) predicate.ChainBase { 481 return predicate.ChainBase(func(s *sql.Selector) { 482 s.Where(sql.LT(s.C(FieldName), v)) 483 }) 484 } 485 486 // NameLTE applies the LTE predicate on the "name" field. 487 func NameLTE(v string) predicate.ChainBase { 488 return predicate.ChainBase(func(s *sql.Selector) { 489 s.Where(sql.LTE(s.C(FieldName), v)) 490 }) 491 } 492 493 // NameContains applies the Contains predicate on the "name" field. 494 func NameContains(v string) predicate.ChainBase { 495 return predicate.ChainBase(func(s *sql.Selector) { 496 s.Where(sql.Contains(s.C(FieldName), v)) 497 }) 498 } 499 500 // NameHasPrefix applies the HasPrefix predicate on the "name" field. 501 func NameHasPrefix(v string) predicate.ChainBase { 502 return predicate.ChainBase(func(s *sql.Selector) { 503 s.Where(sql.HasPrefix(s.C(FieldName), v)) 504 }) 505 } 506 507 // NameHasSuffix applies the HasSuffix predicate on the "name" field. 508 func NameHasSuffix(v string) predicate.ChainBase { 509 return predicate.ChainBase(func(s *sql.Selector) { 510 s.Where(sql.HasSuffix(s.C(FieldName), v)) 511 }) 512 } 513 514 // NameIsNil applies the IsNil predicate on the "name" field. 515 func NameIsNil() predicate.ChainBase { 516 return predicate.ChainBase(func(s *sql.Selector) { 517 s.Where(sql.IsNull(s.C(FieldName))) 518 }) 519 } 520 521 // NameNotNil applies the NotNil predicate on the "name" field. 522 func NameNotNil() predicate.ChainBase { 523 return predicate.ChainBase(func(s *sql.Selector) { 524 s.Where(sql.NotNull(s.C(FieldName))) 525 }) 526 } 527 528 // NameEqualFold applies the EqualFold predicate on the "name" field. 529 func NameEqualFold(v string) predicate.ChainBase { 530 return predicate.ChainBase(func(s *sql.Selector) { 531 s.Where(sql.EqualFold(s.C(FieldName), v)) 532 }) 533 } 534 535 // NameContainsFold applies the ContainsFold predicate on the "name" field. 536 func NameContainsFold(v string) predicate.ChainBase { 537 return predicate.ChainBase(func(s *sql.Selector) { 538 s.Where(sql.ContainsFold(s.C(FieldName), v)) 539 }) 540 } 541 542 // LogoEQ applies the EQ predicate on the "logo" field. 543 func LogoEQ(v string) predicate.ChainBase { 544 return predicate.ChainBase(func(s *sql.Selector) { 545 s.Where(sql.EQ(s.C(FieldLogo), v)) 546 }) 547 } 548 549 // LogoNEQ applies the NEQ predicate on the "logo" field. 550 func LogoNEQ(v string) predicate.ChainBase { 551 return predicate.ChainBase(func(s *sql.Selector) { 552 s.Where(sql.NEQ(s.C(FieldLogo), v)) 553 }) 554 } 555 556 // LogoIn applies the In predicate on the "logo" field. 557 func LogoIn(vs ...string) predicate.ChainBase { 558 v := make([]interface{}, len(vs)) 559 for i := range v { 560 v[i] = vs[i] 561 } 562 return predicate.ChainBase(func(s *sql.Selector) { 563 s.Where(sql.In(s.C(FieldLogo), v...)) 564 }) 565 } 566 567 // LogoNotIn applies the NotIn predicate on the "logo" field. 568 func LogoNotIn(vs ...string) predicate.ChainBase { 569 v := make([]interface{}, len(vs)) 570 for i := range v { 571 v[i] = vs[i] 572 } 573 return predicate.ChainBase(func(s *sql.Selector) { 574 s.Where(sql.NotIn(s.C(FieldLogo), v...)) 575 }) 576 } 577 578 // LogoGT applies the GT predicate on the "logo" field. 579 func LogoGT(v string) predicate.ChainBase { 580 return predicate.ChainBase(func(s *sql.Selector) { 581 s.Where(sql.GT(s.C(FieldLogo), v)) 582 }) 583 } 584 585 // LogoGTE applies the GTE predicate on the "logo" field. 586 func LogoGTE(v string) predicate.ChainBase { 587 return predicate.ChainBase(func(s *sql.Selector) { 588 s.Where(sql.GTE(s.C(FieldLogo), v)) 589 }) 590 } 591 592 // LogoLT applies the LT predicate on the "logo" field. 593 func LogoLT(v string) predicate.ChainBase { 594 return predicate.ChainBase(func(s *sql.Selector) { 595 s.Where(sql.LT(s.C(FieldLogo), v)) 596 }) 597 } 598 599 // LogoLTE applies the LTE predicate on the "logo" field. 600 func LogoLTE(v string) predicate.ChainBase { 601 return predicate.ChainBase(func(s *sql.Selector) { 602 s.Where(sql.LTE(s.C(FieldLogo), v)) 603 }) 604 } 605 606 // LogoContains applies the Contains predicate on the "logo" field. 607 func LogoContains(v string) predicate.ChainBase { 608 return predicate.ChainBase(func(s *sql.Selector) { 609 s.Where(sql.Contains(s.C(FieldLogo), v)) 610 }) 611 } 612 613 // LogoHasPrefix applies the HasPrefix predicate on the "logo" field. 614 func LogoHasPrefix(v string) predicate.ChainBase { 615 return predicate.ChainBase(func(s *sql.Selector) { 616 s.Where(sql.HasPrefix(s.C(FieldLogo), v)) 617 }) 618 } 619 620 // LogoHasSuffix applies the HasSuffix predicate on the "logo" field. 621 func LogoHasSuffix(v string) predicate.ChainBase { 622 return predicate.ChainBase(func(s *sql.Selector) { 623 s.Where(sql.HasSuffix(s.C(FieldLogo), v)) 624 }) 625 } 626 627 // LogoIsNil applies the IsNil predicate on the "logo" field. 628 func LogoIsNil() predicate.ChainBase { 629 return predicate.ChainBase(func(s *sql.Selector) { 630 s.Where(sql.IsNull(s.C(FieldLogo))) 631 }) 632 } 633 634 // LogoNotNil applies the NotNil predicate on the "logo" field. 635 func LogoNotNil() predicate.ChainBase { 636 return predicate.ChainBase(func(s *sql.Selector) { 637 s.Where(sql.NotNull(s.C(FieldLogo))) 638 }) 639 } 640 641 // LogoEqualFold applies the EqualFold predicate on the "logo" field. 642 func LogoEqualFold(v string) predicate.ChainBase { 643 return predicate.ChainBase(func(s *sql.Selector) { 644 s.Where(sql.EqualFold(s.C(FieldLogo), v)) 645 }) 646 } 647 648 // LogoContainsFold applies the ContainsFold predicate on the "logo" field. 649 func LogoContainsFold(v string) predicate.ChainBase { 650 return predicate.ChainBase(func(s *sql.Selector) { 651 s.Where(sql.ContainsFold(s.C(FieldLogo), v)) 652 }) 653 } 654 655 // NativeUnitEQ applies the EQ predicate on the "native_unit" field. 656 func NativeUnitEQ(v string) predicate.ChainBase { 657 return predicate.ChainBase(func(s *sql.Selector) { 658 s.Where(sql.EQ(s.C(FieldNativeUnit), v)) 659 }) 660 } 661 662 // NativeUnitNEQ applies the NEQ predicate on the "native_unit" field. 663 func NativeUnitNEQ(v string) predicate.ChainBase { 664 return predicate.ChainBase(func(s *sql.Selector) { 665 s.Where(sql.NEQ(s.C(FieldNativeUnit), v)) 666 }) 667 } 668 669 // NativeUnitIn applies the In predicate on the "native_unit" field. 670 func NativeUnitIn(vs ...string) predicate.ChainBase { 671 v := make([]interface{}, len(vs)) 672 for i := range v { 673 v[i] = vs[i] 674 } 675 return predicate.ChainBase(func(s *sql.Selector) { 676 s.Where(sql.In(s.C(FieldNativeUnit), v...)) 677 }) 678 } 679 680 // NativeUnitNotIn applies the NotIn predicate on the "native_unit" field. 681 func NativeUnitNotIn(vs ...string) predicate.ChainBase { 682 v := make([]interface{}, len(vs)) 683 for i := range v { 684 v[i] = vs[i] 685 } 686 return predicate.ChainBase(func(s *sql.Selector) { 687 s.Where(sql.NotIn(s.C(FieldNativeUnit), v...)) 688 }) 689 } 690 691 // NativeUnitGT applies the GT predicate on the "native_unit" field. 692 func NativeUnitGT(v string) predicate.ChainBase { 693 return predicate.ChainBase(func(s *sql.Selector) { 694 s.Where(sql.GT(s.C(FieldNativeUnit), v)) 695 }) 696 } 697 698 // NativeUnitGTE applies the GTE predicate on the "native_unit" field. 699 func NativeUnitGTE(v string) predicate.ChainBase { 700 return predicate.ChainBase(func(s *sql.Selector) { 701 s.Where(sql.GTE(s.C(FieldNativeUnit), v)) 702 }) 703 } 704 705 // NativeUnitLT applies the LT predicate on the "native_unit" field. 706 func NativeUnitLT(v string) predicate.ChainBase { 707 return predicate.ChainBase(func(s *sql.Selector) { 708 s.Where(sql.LT(s.C(FieldNativeUnit), v)) 709 }) 710 } 711 712 // NativeUnitLTE applies the LTE predicate on the "native_unit" field. 713 func NativeUnitLTE(v string) predicate.ChainBase { 714 return predicate.ChainBase(func(s *sql.Selector) { 715 s.Where(sql.LTE(s.C(FieldNativeUnit), v)) 716 }) 717 } 718 719 // NativeUnitContains applies the Contains predicate on the "native_unit" field. 720 func NativeUnitContains(v string) predicate.ChainBase { 721 return predicate.ChainBase(func(s *sql.Selector) { 722 s.Where(sql.Contains(s.C(FieldNativeUnit), v)) 723 }) 724 } 725 726 // NativeUnitHasPrefix applies the HasPrefix predicate on the "native_unit" field. 727 func NativeUnitHasPrefix(v string) predicate.ChainBase { 728 return predicate.ChainBase(func(s *sql.Selector) { 729 s.Where(sql.HasPrefix(s.C(FieldNativeUnit), v)) 730 }) 731 } 732 733 // NativeUnitHasSuffix applies the HasSuffix predicate on the "native_unit" field. 734 func NativeUnitHasSuffix(v string) predicate.ChainBase { 735 return predicate.ChainBase(func(s *sql.Selector) { 736 s.Where(sql.HasSuffix(s.C(FieldNativeUnit), v)) 737 }) 738 } 739 740 // NativeUnitIsNil applies the IsNil predicate on the "native_unit" field. 741 func NativeUnitIsNil() predicate.ChainBase { 742 return predicate.ChainBase(func(s *sql.Selector) { 743 s.Where(sql.IsNull(s.C(FieldNativeUnit))) 744 }) 745 } 746 747 // NativeUnitNotNil applies the NotNil predicate on the "native_unit" field. 748 func NativeUnitNotNil() predicate.ChainBase { 749 return predicate.ChainBase(func(s *sql.Selector) { 750 s.Where(sql.NotNull(s.C(FieldNativeUnit))) 751 }) 752 } 753 754 // NativeUnitEqualFold applies the EqualFold predicate on the "native_unit" field. 755 func NativeUnitEqualFold(v string) predicate.ChainBase { 756 return predicate.ChainBase(func(s *sql.Selector) { 757 s.Where(sql.EqualFold(s.C(FieldNativeUnit), v)) 758 }) 759 } 760 761 // NativeUnitContainsFold applies the ContainsFold predicate on the "native_unit" field. 762 func NativeUnitContainsFold(v string) predicate.ChainBase { 763 return predicate.ChainBase(func(s *sql.Selector) { 764 s.Where(sql.ContainsFold(s.C(FieldNativeUnit), v)) 765 }) 766 } 767 768 // AtomicUnitEQ applies the EQ predicate on the "atomic_unit" field. 769 func AtomicUnitEQ(v string) predicate.ChainBase { 770 return predicate.ChainBase(func(s *sql.Selector) { 771 s.Where(sql.EQ(s.C(FieldAtomicUnit), v)) 772 }) 773 } 774 775 // AtomicUnitNEQ applies the NEQ predicate on the "atomic_unit" field. 776 func AtomicUnitNEQ(v string) predicate.ChainBase { 777 return predicate.ChainBase(func(s *sql.Selector) { 778 s.Where(sql.NEQ(s.C(FieldAtomicUnit), v)) 779 }) 780 } 781 782 // AtomicUnitIn applies the In predicate on the "atomic_unit" field. 783 func AtomicUnitIn(vs ...string) predicate.ChainBase { 784 v := make([]interface{}, len(vs)) 785 for i := range v { 786 v[i] = vs[i] 787 } 788 return predicate.ChainBase(func(s *sql.Selector) { 789 s.Where(sql.In(s.C(FieldAtomicUnit), v...)) 790 }) 791 } 792 793 // AtomicUnitNotIn applies the NotIn predicate on the "atomic_unit" field. 794 func AtomicUnitNotIn(vs ...string) predicate.ChainBase { 795 v := make([]interface{}, len(vs)) 796 for i := range v { 797 v[i] = vs[i] 798 } 799 return predicate.ChainBase(func(s *sql.Selector) { 800 s.Where(sql.NotIn(s.C(FieldAtomicUnit), v...)) 801 }) 802 } 803 804 // AtomicUnitGT applies the GT predicate on the "atomic_unit" field. 805 func AtomicUnitGT(v string) predicate.ChainBase { 806 return predicate.ChainBase(func(s *sql.Selector) { 807 s.Where(sql.GT(s.C(FieldAtomicUnit), v)) 808 }) 809 } 810 811 // AtomicUnitGTE applies the GTE predicate on the "atomic_unit" field. 812 func AtomicUnitGTE(v string) predicate.ChainBase { 813 return predicate.ChainBase(func(s *sql.Selector) { 814 s.Where(sql.GTE(s.C(FieldAtomicUnit), v)) 815 }) 816 } 817 818 // AtomicUnitLT applies the LT predicate on the "atomic_unit" field. 819 func AtomicUnitLT(v string) predicate.ChainBase { 820 return predicate.ChainBase(func(s *sql.Selector) { 821 s.Where(sql.LT(s.C(FieldAtomicUnit), v)) 822 }) 823 } 824 825 // AtomicUnitLTE applies the LTE predicate on the "atomic_unit" field. 826 func AtomicUnitLTE(v string) predicate.ChainBase { 827 return predicate.ChainBase(func(s *sql.Selector) { 828 s.Where(sql.LTE(s.C(FieldAtomicUnit), v)) 829 }) 830 } 831 832 // AtomicUnitContains applies the Contains predicate on the "atomic_unit" field. 833 func AtomicUnitContains(v string) predicate.ChainBase { 834 return predicate.ChainBase(func(s *sql.Selector) { 835 s.Where(sql.Contains(s.C(FieldAtomicUnit), v)) 836 }) 837 } 838 839 // AtomicUnitHasPrefix applies the HasPrefix predicate on the "atomic_unit" field. 840 func AtomicUnitHasPrefix(v string) predicate.ChainBase { 841 return predicate.ChainBase(func(s *sql.Selector) { 842 s.Where(sql.HasPrefix(s.C(FieldAtomicUnit), v)) 843 }) 844 } 845 846 // AtomicUnitHasSuffix applies the HasSuffix predicate on the "atomic_unit" field. 847 func AtomicUnitHasSuffix(v string) predicate.ChainBase { 848 return predicate.ChainBase(func(s *sql.Selector) { 849 s.Where(sql.HasSuffix(s.C(FieldAtomicUnit), v)) 850 }) 851 } 852 853 // AtomicUnitIsNil applies the IsNil predicate on the "atomic_unit" field. 854 func AtomicUnitIsNil() predicate.ChainBase { 855 return predicate.ChainBase(func(s *sql.Selector) { 856 s.Where(sql.IsNull(s.C(FieldAtomicUnit))) 857 }) 858 } 859 860 // AtomicUnitNotNil applies the NotNil predicate on the "atomic_unit" field. 861 func AtomicUnitNotNil() predicate.ChainBase { 862 return predicate.ChainBase(func(s *sql.Selector) { 863 s.Where(sql.NotNull(s.C(FieldAtomicUnit))) 864 }) 865 } 866 867 // AtomicUnitEqualFold applies the EqualFold predicate on the "atomic_unit" field. 868 func AtomicUnitEqualFold(v string) predicate.ChainBase { 869 return predicate.ChainBase(func(s *sql.Selector) { 870 s.Where(sql.EqualFold(s.C(FieldAtomicUnit), v)) 871 }) 872 } 873 874 // AtomicUnitContainsFold applies the ContainsFold predicate on the "atomic_unit" field. 875 func AtomicUnitContainsFold(v string) predicate.ChainBase { 876 return predicate.ChainBase(func(s *sql.Selector) { 877 s.Where(sql.ContainsFold(s.C(FieldAtomicUnit), v)) 878 }) 879 } 880 881 // UnitExpEQ applies the EQ predicate on the "unit_exp" field. 882 func UnitExpEQ(v uint32) predicate.ChainBase { 883 return predicate.ChainBase(func(s *sql.Selector) { 884 s.Where(sql.EQ(s.C(FieldUnitExp), v)) 885 }) 886 } 887 888 // UnitExpNEQ applies the NEQ predicate on the "unit_exp" field. 889 func UnitExpNEQ(v uint32) predicate.ChainBase { 890 return predicate.ChainBase(func(s *sql.Selector) { 891 s.Where(sql.NEQ(s.C(FieldUnitExp), v)) 892 }) 893 } 894 895 // UnitExpIn applies the In predicate on the "unit_exp" field. 896 func UnitExpIn(vs ...uint32) predicate.ChainBase { 897 v := make([]interface{}, len(vs)) 898 for i := range v { 899 v[i] = vs[i] 900 } 901 return predicate.ChainBase(func(s *sql.Selector) { 902 s.Where(sql.In(s.C(FieldUnitExp), v...)) 903 }) 904 } 905 906 // UnitExpNotIn applies the NotIn predicate on the "unit_exp" field. 907 func UnitExpNotIn(vs ...uint32) predicate.ChainBase { 908 v := make([]interface{}, len(vs)) 909 for i := range v { 910 v[i] = vs[i] 911 } 912 return predicate.ChainBase(func(s *sql.Selector) { 913 s.Where(sql.NotIn(s.C(FieldUnitExp), v...)) 914 }) 915 } 916 917 // UnitExpGT applies the GT predicate on the "unit_exp" field. 918 func UnitExpGT(v uint32) predicate.ChainBase { 919 return predicate.ChainBase(func(s *sql.Selector) { 920 s.Where(sql.GT(s.C(FieldUnitExp), v)) 921 }) 922 } 923 924 // UnitExpGTE applies the GTE predicate on the "unit_exp" field. 925 func UnitExpGTE(v uint32) predicate.ChainBase { 926 return predicate.ChainBase(func(s *sql.Selector) { 927 s.Where(sql.GTE(s.C(FieldUnitExp), v)) 928 }) 929 } 930 931 // UnitExpLT applies the LT predicate on the "unit_exp" field. 932 func UnitExpLT(v uint32) predicate.ChainBase { 933 return predicate.ChainBase(func(s *sql.Selector) { 934 s.Where(sql.LT(s.C(FieldUnitExp), v)) 935 }) 936 } 937 938 // UnitExpLTE applies the LTE predicate on the "unit_exp" field. 939 func UnitExpLTE(v uint32) predicate.ChainBase { 940 return predicate.ChainBase(func(s *sql.Selector) { 941 s.Where(sql.LTE(s.C(FieldUnitExp), v)) 942 }) 943 } 944 945 // UnitExpIsNil applies the IsNil predicate on the "unit_exp" field. 946 func UnitExpIsNil() predicate.ChainBase { 947 return predicate.ChainBase(func(s *sql.Selector) { 948 s.Where(sql.IsNull(s.C(FieldUnitExp))) 949 }) 950 } 951 952 // UnitExpNotNil applies the NotNil predicate on the "unit_exp" field. 953 func UnitExpNotNil() predicate.ChainBase { 954 return predicate.ChainBase(func(s *sql.Selector) { 955 s.Where(sql.NotNull(s.C(FieldUnitExp))) 956 }) 957 } 958 959 // EnvEQ applies the EQ predicate on the "env" field. 960 func EnvEQ(v string) predicate.ChainBase { 961 return predicate.ChainBase(func(s *sql.Selector) { 962 s.Where(sql.EQ(s.C(FieldEnv), v)) 963 }) 964 } 965 966 // EnvNEQ applies the NEQ predicate on the "env" field. 967 func EnvNEQ(v string) predicate.ChainBase { 968 return predicate.ChainBase(func(s *sql.Selector) { 969 s.Where(sql.NEQ(s.C(FieldEnv), v)) 970 }) 971 } 972 973 // EnvIn applies the In predicate on the "env" field. 974 func EnvIn(vs ...string) predicate.ChainBase { 975 v := make([]interface{}, len(vs)) 976 for i := range v { 977 v[i] = vs[i] 978 } 979 return predicate.ChainBase(func(s *sql.Selector) { 980 s.Where(sql.In(s.C(FieldEnv), v...)) 981 }) 982 } 983 984 // EnvNotIn applies the NotIn predicate on the "env" field. 985 func EnvNotIn(vs ...string) predicate.ChainBase { 986 v := make([]interface{}, len(vs)) 987 for i := range v { 988 v[i] = vs[i] 989 } 990 return predicate.ChainBase(func(s *sql.Selector) { 991 s.Where(sql.NotIn(s.C(FieldEnv), v...)) 992 }) 993 } 994 995 // EnvGT applies the GT predicate on the "env" field. 996 func EnvGT(v string) predicate.ChainBase { 997 return predicate.ChainBase(func(s *sql.Selector) { 998 s.Where(sql.GT(s.C(FieldEnv), v)) 999 }) 1000 } 1001 1002 // EnvGTE applies the GTE predicate on the "env" field. 1003 func EnvGTE(v string) predicate.ChainBase { 1004 return predicate.ChainBase(func(s *sql.Selector) { 1005 s.Where(sql.GTE(s.C(FieldEnv), v)) 1006 }) 1007 } 1008 1009 // EnvLT applies the LT predicate on the "env" field. 1010 func EnvLT(v string) predicate.ChainBase { 1011 return predicate.ChainBase(func(s *sql.Selector) { 1012 s.Where(sql.LT(s.C(FieldEnv), v)) 1013 }) 1014 } 1015 1016 // EnvLTE applies the LTE predicate on the "env" field. 1017 func EnvLTE(v string) predicate.ChainBase { 1018 return predicate.ChainBase(func(s *sql.Selector) { 1019 s.Where(sql.LTE(s.C(FieldEnv), v)) 1020 }) 1021 } 1022 1023 // EnvContains applies the Contains predicate on the "env" field. 1024 func EnvContains(v string) predicate.ChainBase { 1025 return predicate.ChainBase(func(s *sql.Selector) { 1026 s.Where(sql.Contains(s.C(FieldEnv), v)) 1027 }) 1028 } 1029 1030 // EnvHasPrefix applies the HasPrefix predicate on the "env" field. 1031 func EnvHasPrefix(v string) predicate.ChainBase { 1032 return predicate.ChainBase(func(s *sql.Selector) { 1033 s.Where(sql.HasPrefix(s.C(FieldEnv), v)) 1034 }) 1035 } 1036 1037 // EnvHasSuffix applies the HasSuffix predicate on the "env" field. 1038 func EnvHasSuffix(v string) predicate.ChainBase { 1039 return predicate.ChainBase(func(s *sql.Selector) { 1040 s.Where(sql.HasSuffix(s.C(FieldEnv), v)) 1041 }) 1042 } 1043 1044 // EnvIsNil applies the IsNil predicate on the "env" field. 1045 func EnvIsNil() predicate.ChainBase { 1046 return predicate.ChainBase(func(s *sql.Selector) { 1047 s.Where(sql.IsNull(s.C(FieldEnv))) 1048 }) 1049 } 1050 1051 // EnvNotNil applies the NotNil predicate on the "env" field. 1052 func EnvNotNil() predicate.ChainBase { 1053 return predicate.ChainBase(func(s *sql.Selector) { 1054 s.Where(sql.NotNull(s.C(FieldEnv))) 1055 }) 1056 } 1057 1058 // EnvEqualFold applies the EqualFold predicate on the "env" field. 1059 func EnvEqualFold(v string) predicate.ChainBase { 1060 return predicate.ChainBase(func(s *sql.Selector) { 1061 s.Where(sql.EqualFold(s.C(FieldEnv), v)) 1062 }) 1063 } 1064 1065 // EnvContainsFold applies the ContainsFold predicate on the "env" field. 1066 func EnvContainsFold(v string) predicate.ChainBase { 1067 return predicate.ChainBase(func(s *sql.Selector) { 1068 s.Where(sql.ContainsFold(s.C(FieldEnv), v)) 1069 }) 1070 } 1071 1072 // ChainIDEQ applies the EQ predicate on the "chain_id" field. 1073 func ChainIDEQ(v string) predicate.ChainBase { 1074 return predicate.ChainBase(func(s *sql.Selector) { 1075 s.Where(sql.EQ(s.C(FieldChainID), v)) 1076 }) 1077 } 1078 1079 // ChainIDNEQ applies the NEQ predicate on the "chain_id" field. 1080 func ChainIDNEQ(v string) predicate.ChainBase { 1081 return predicate.ChainBase(func(s *sql.Selector) { 1082 s.Where(sql.NEQ(s.C(FieldChainID), v)) 1083 }) 1084 } 1085 1086 // ChainIDIn applies the In predicate on the "chain_id" field. 1087 func ChainIDIn(vs ...string) predicate.ChainBase { 1088 v := make([]interface{}, len(vs)) 1089 for i := range v { 1090 v[i] = vs[i] 1091 } 1092 return predicate.ChainBase(func(s *sql.Selector) { 1093 s.Where(sql.In(s.C(FieldChainID), v...)) 1094 }) 1095 } 1096 1097 // ChainIDNotIn applies the NotIn predicate on the "chain_id" field. 1098 func ChainIDNotIn(vs ...string) predicate.ChainBase { 1099 v := make([]interface{}, len(vs)) 1100 for i := range v { 1101 v[i] = vs[i] 1102 } 1103 return predicate.ChainBase(func(s *sql.Selector) { 1104 s.Where(sql.NotIn(s.C(FieldChainID), v...)) 1105 }) 1106 } 1107 1108 // ChainIDGT applies the GT predicate on the "chain_id" field. 1109 func ChainIDGT(v string) predicate.ChainBase { 1110 return predicate.ChainBase(func(s *sql.Selector) { 1111 s.Where(sql.GT(s.C(FieldChainID), v)) 1112 }) 1113 } 1114 1115 // ChainIDGTE applies the GTE predicate on the "chain_id" field. 1116 func ChainIDGTE(v string) predicate.ChainBase { 1117 return predicate.ChainBase(func(s *sql.Selector) { 1118 s.Where(sql.GTE(s.C(FieldChainID), v)) 1119 }) 1120 } 1121 1122 // ChainIDLT applies the LT predicate on the "chain_id" field. 1123 func ChainIDLT(v string) predicate.ChainBase { 1124 return predicate.ChainBase(func(s *sql.Selector) { 1125 s.Where(sql.LT(s.C(FieldChainID), v)) 1126 }) 1127 } 1128 1129 // ChainIDLTE applies the LTE predicate on the "chain_id" field. 1130 func ChainIDLTE(v string) predicate.ChainBase { 1131 return predicate.ChainBase(func(s *sql.Selector) { 1132 s.Where(sql.LTE(s.C(FieldChainID), v)) 1133 }) 1134 } 1135 1136 // ChainIDContains applies the Contains predicate on the "chain_id" field. 1137 func ChainIDContains(v string) predicate.ChainBase { 1138 return predicate.ChainBase(func(s *sql.Selector) { 1139 s.Where(sql.Contains(s.C(FieldChainID), v)) 1140 }) 1141 } 1142 1143 // ChainIDHasPrefix applies the HasPrefix predicate on the "chain_id" field. 1144 func ChainIDHasPrefix(v string) predicate.ChainBase { 1145 return predicate.ChainBase(func(s *sql.Selector) { 1146 s.Where(sql.HasPrefix(s.C(FieldChainID), v)) 1147 }) 1148 } 1149 1150 // ChainIDHasSuffix applies the HasSuffix predicate on the "chain_id" field. 1151 func ChainIDHasSuffix(v string) predicate.ChainBase { 1152 return predicate.ChainBase(func(s *sql.Selector) { 1153 s.Where(sql.HasSuffix(s.C(FieldChainID), v)) 1154 }) 1155 } 1156 1157 // ChainIDIsNil applies the IsNil predicate on the "chain_id" field. 1158 func ChainIDIsNil() predicate.ChainBase { 1159 return predicate.ChainBase(func(s *sql.Selector) { 1160 s.Where(sql.IsNull(s.C(FieldChainID))) 1161 }) 1162 } 1163 1164 // ChainIDNotNil applies the NotNil predicate on the "chain_id" field. 1165 func ChainIDNotNil() predicate.ChainBase { 1166 return predicate.ChainBase(func(s *sql.Selector) { 1167 s.Where(sql.NotNull(s.C(FieldChainID))) 1168 }) 1169 } 1170 1171 // ChainIDEqualFold applies the EqualFold predicate on the "chain_id" field. 1172 func ChainIDEqualFold(v string) predicate.ChainBase { 1173 return predicate.ChainBase(func(s *sql.Selector) { 1174 s.Where(sql.EqualFold(s.C(FieldChainID), v)) 1175 }) 1176 } 1177 1178 // ChainIDContainsFold applies the ContainsFold predicate on the "chain_id" field. 1179 func ChainIDContainsFold(v string) predicate.ChainBase { 1180 return predicate.ChainBase(func(s *sql.Selector) { 1181 s.Where(sql.ContainsFold(s.C(FieldChainID), v)) 1182 }) 1183 } 1184 1185 // NicknameEQ applies the EQ predicate on the "nickname" field. 1186 func NicknameEQ(v string) predicate.ChainBase { 1187 return predicate.ChainBase(func(s *sql.Selector) { 1188 s.Where(sql.EQ(s.C(FieldNickname), v)) 1189 }) 1190 } 1191 1192 // NicknameNEQ applies the NEQ predicate on the "nickname" field. 1193 func NicknameNEQ(v string) predicate.ChainBase { 1194 return predicate.ChainBase(func(s *sql.Selector) { 1195 s.Where(sql.NEQ(s.C(FieldNickname), v)) 1196 }) 1197 } 1198 1199 // NicknameIn applies the In predicate on the "nickname" field. 1200 func NicknameIn(vs ...string) predicate.ChainBase { 1201 v := make([]interface{}, len(vs)) 1202 for i := range v { 1203 v[i] = vs[i] 1204 } 1205 return predicate.ChainBase(func(s *sql.Selector) { 1206 s.Where(sql.In(s.C(FieldNickname), v...)) 1207 }) 1208 } 1209 1210 // NicknameNotIn applies the NotIn predicate on the "nickname" field. 1211 func NicknameNotIn(vs ...string) predicate.ChainBase { 1212 v := make([]interface{}, len(vs)) 1213 for i := range v { 1214 v[i] = vs[i] 1215 } 1216 return predicate.ChainBase(func(s *sql.Selector) { 1217 s.Where(sql.NotIn(s.C(FieldNickname), v...)) 1218 }) 1219 } 1220 1221 // NicknameGT applies the GT predicate on the "nickname" field. 1222 func NicknameGT(v string) predicate.ChainBase { 1223 return predicate.ChainBase(func(s *sql.Selector) { 1224 s.Where(sql.GT(s.C(FieldNickname), v)) 1225 }) 1226 } 1227 1228 // NicknameGTE applies the GTE predicate on the "nickname" field. 1229 func NicknameGTE(v string) predicate.ChainBase { 1230 return predicate.ChainBase(func(s *sql.Selector) { 1231 s.Where(sql.GTE(s.C(FieldNickname), v)) 1232 }) 1233 } 1234 1235 // NicknameLT applies the LT predicate on the "nickname" field. 1236 func NicknameLT(v string) predicate.ChainBase { 1237 return predicate.ChainBase(func(s *sql.Selector) { 1238 s.Where(sql.LT(s.C(FieldNickname), v)) 1239 }) 1240 } 1241 1242 // NicknameLTE applies the LTE predicate on the "nickname" field. 1243 func NicknameLTE(v string) predicate.ChainBase { 1244 return predicate.ChainBase(func(s *sql.Selector) { 1245 s.Where(sql.LTE(s.C(FieldNickname), v)) 1246 }) 1247 } 1248 1249 // NicknameContains applies the Contains predicate on the "nickname" field. 1250 func NicknameContains(v string) predicate.ChainBase { 1251 return predicate.ChainBase(func(s *sql.Selector) { 1252 s.Where(sql.Contains(s.C(FieldNickname), v)) 1253 }) 1254 } 1255 1256 // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field. 1257 func NicknameHasPrefix(v string) predicate.ChainBase { 1258 return predicate.ChainBase(func(s *sql.Selector) { 1259 s.Where(sql.HasPrefix(s.C(FieldNickname), v)) 1260 }) 1261 } 1262 1263 // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field. 1264 func NicknameHasSuffix(v string) predicate.ChainBase { 1265 return predicate.ChainBase(func(s *sql.Selector) { 1266 s.Where(sql.HasSuffix(s.C(FieldNickname), v)) 1267 }) 1268 } 1269 1270 // NicknameIsNil applies the IsNil predicate on the "nickname" field. 1271 func NicknameIsNil() predicate.ChainBase { 1272 return predicate.ChainBase(func(s *sql.Selector) { 1273 s.Where(sql.IsNull(s.C(FieldNickname))) 1274 }) 1275 } 1276 1277 // NicknameNotNil applies the NotNil predicate on the "nickname" field. 1278 func NicknameNotNil() predicate.ChainBase { 1279 return predicate.ChainBase(func(s *sql.Selector) { 1280 s.Where(sql.NotNull(s.C(FieldNickname))) 1281 }) 1282 } 1283 1284 // NicknameEqualFold applies the EqualFold predicate on the "nickname" field. 1285 func NicknameEqualFold(v string) predicate.ChainBase { 1286 return predicate.ChainBase(func(s *sql.Selector) { 1287 s.Where(sql.EqualFold(s.C(FieldNickname), v)) 1288 }) 1289 } 1290 1291 // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field. 1292 func NicknameContainsFold(v string) predicate.ChainBase { 1293 return predicate.ChainBase(func(s *sql.Selector) { 1294 s.Where(sql.ContainsFold(s.C(FieldNickname), v)) 1295 }) 1296 } 1297 1298 // GasTypeEQ applies the EQ predicate on the "gas_type" field. 1299 func GasTypeEQ(v string) predicate.ChainBase { 1300 return predicate.ChainBase(func(s *sql.Selector) { 1301 s.Where(sql.EQ(s.C(FieldGasType), v)) 1302 }) 1303 } 1304 1305 // GasTypeNEQ applies the NEQ predicate on the "gas_type" field. 1306 func GasTypeNEQ(v string) predicate.ChainBase { 1307 return predicate.ChainBase(func(s *sql.Selector) { 1308 s.Where(sql.NEQ(s.C(FieldGasType), v)) 1309 }) 1310 } 1311 1312 // GasTypeIn applies the In predicate on the "gas_type" field. 1313 func GasTypeIn(vs ...string) predicate.ChainBase { 1314 v := make([]interface{}, len(vs)) 1315 for i := range v { 1316 v[i] = vs[i] 1317 } 1318 return predicate.ChainBase(func(s *sql.Selector) { 1319 s.Where(sql.In(s.C(FieldGasType), v...)) 1320 }) 1321 } 1322 1323 // GasTypeNotIn applies the NotIn predicate on the "gas_type" field. 1324 func GasTypeNotIn(vs ...string) predicate.ChainBase { 1325 v := make([]interface{}, len(vs)) 1326 for i := range v { 1327 v[i] = vs[i] 1328 } 1329 return predicate.ChainBase(func(s *sql.Selector) { 1330 s.Where(sql.NotIn(s.C(FieldGasType), v...)) 1331 }) 1332 } 1333 1334 // GasTypeGT applies the GT predicate on the "gas_type" field. 1335 func GasTypeGT(v string) predicate.ChainBase { 1336 return predicate.ChainBase(func(s *sql.Selector) { 1337 s.Where(sql.GT(s.C(FieldGasType), v)) 1338 }) 1339 } 1340 1341 // GasTypeGTE applies the GTE predicate on the "gas_type" field. 1342 func GasTypeGTE(v string) predicate.ChainBase { 1343 return predicate.ChainBase(func(s *sql.Selector) { 1344 s.Where(sql.GTE(s.C(FieldGasType), v)) 1345 }) 1346 } 1347 1348 // GasTypeLT applies the LT predicate on the "gas_type" field. 1349 func GasTypeLT(v string) predicate.ChainBase { 1350 return predicate.ChainBase(func(s *sql.Selector) { 1351 s.Where(sql.LT(s.C(FieldGasType), v)) 1352 }) 1353 } 1354 1355 // GasTypeLTE applies the LTE predicate on the "gas_type" field. 1356 func GasTypeLTE(v string) predicate.ChainBase { 1357 return predicate.ChainBase(func(s *sql.Selector) { 1358 s.Where(sql.LTE(s.C(FieldGasType), v)) 1359 }) 1360 } 1361 1362 // GasTypeContains applies the Contains predicate on the "gas_type" field. 1363 func GasTypeContains(v string) predicate.ChainBase { 1364 return predicate.ChainBase(func(s *sql.Selector) { 1365 s.Where(sql.Contains(s.C(FieldGasType), v)) 1366 }) 1367 } 1368 1369 // GasTypeHasPrefix applies the HasPrefix predicate on the "gas_type" field. 1370 func GasTypeHasPrefix(v string) predicate.ChainBase { 1371 return predicate.ChainBase(func(s *sql.Selector) { 1372 s.Where(sql.HasPrefix(s.C(FieldGasType), v)) 1373 }) 1374 } 1375 1376 // GasTypeHasSuffix applies the HasSuffix predicate on the "gas_type" field. 1377 func GasTypeHasSuffix(v string) predicate.ChainBase { 1378 return predicate.ChainBase(func(s *sql.Selector) { 1379 s.Where(sql.HasSuffix(s.C(FieldGasType), v)) 1380 }) 1381 } 1382 1383 // GasTypeIsNil applies the IsNil predicate on the "gas_type" field. 1384 func GasTypeIsNil() predicate.ChainBase { 1385 return predicate.ChainBase(func(s *sql.Selector) { 1386 s.Where(sql.IsNull(s.C(FieldGasType))) 1387 }) 1388 } 1389 1390 // GasTypeNotNil applies the NotNil predicate on the "gas_type" field. 1391 func GasTypeNotNil() predicate.ChainBase { 1392 return predicate.ChainBase(func(s *sql.Selector) { 1393 s.Where(sql.NotNull(s.C(FieldGasType))) 1394 }) 1395 } 1396 1397 // GasTypeEqualFold applies the EqualFold predicate on the "gas_type" field. 1398 func GasTypeEqualFold(v string) predicate.ChainBase { 1399 return predicate.ChainBase(func(s *sql.Selector) { 1400 s.Where(sql.EqualFold(s.C(FieldGasType), v)) 1401 }) 1402 } 1403 1404 // GasTypeContainsFold applies the ContainsFold predicate on the "gas_type" field. 1405 func GasTypeContainsFold(v string) predicate.ChainBase { 1406 return predicate.ChainBase(func(s *sql.Selector) { 1407 s.Where(sql.ContainsFold(s.C(FieldGasType), v)) 1408 }) 1409 } 1410 1411 // And groups predicates with the AND operator between them. 1412 func And(predicates ...predicate.ChainBase) predicate.ChainBase { 1413 return predicate.ChainBase(func(s *sql.Selector) { 1414 s1 := s.Clone().SetP(nil) 1415 for _, p := range predicates { 1416 p(s1) 1417 } 1418 s.Where(s1.P()) 1419 }) 1420 } 1421 1422 // Or groups predicates with the OR operator between them. 1423 func Or(predicates ...predicate.ChainBase) predicate.ChainBase { 1424 return predicate.ChainBase(func(s *sql.Selector) { 1425 s1 := s.Clone().SetP(nil) 1426 for i, p := range predicates { 1427 if i > 0 { 1428 s1.Or() 1429 } 1430 p(s1) 1431 } 1432 s.Where(s1.P()) 1433 }) 1434 } 1435 1436 // Not applies the not operator on the given predicate. 1437 func Not(p predicate.ChainBase) predicate.ChainBase { 1438 return predicate.ChainBase(func(s *sql.Selector) { 1439 p(s.Not()) 1440 }) 1441 }