github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/currencyhistory/where.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package currencyhistory 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 "github.com/shopspring/decimal" 10 ) 11 12 // ID filters vertices based on their ID field. 13 func ID(id uint32) predicate.CurrencyHistory { 14 return predicate.CurrencyHistory(func(s *sql.Selector) { 15 s.Where(sql.EQ(s.C(FieldID), id)) 16 }) 17 } 18 19 // IDEQ applies the EQ predicate on the ID field. 20 func IDEQ(id uint32) predicate.CurrencyHistory { 21 return predicate.CurrencyHistory(func(s *sql.Selector) { 22 s.Where(sql.EQ(s.C(FieldID), id)) 23 }) 24 } 25 26 // IDNEQ applies the NEQ predicate on the ID field. 27 func IDNEQ(id uint32) predicate.CurrencyHistory { 28 return predicate.CurrencyHistory(func(s *sql.Selector) { 29 s.Where(sql.NEQ(s.C(FieldID), id)) 30 }) 31 } 32 33 // IDIn applies the In predicate on the ID field. 34 func IDIn(ids ...uint32) predicate.CurrencyHistory { 35 return predicate.CurrencyHistory(func(s *sql.Selector) { 36 v := make([]interface{}, len(ids)) 37 for i := range v { 38 v[i] = ids[i] 39 } 40 s.Where(sql.In(s.C(FieldID), v...)) 41 }) 42 } 43 44 // IDNotIn applies the NotIn predicate on the ID field. 45 func IDNotIn(ids ...uint32) predicate.CurrencyHistory { 46 return predicate.CurrencyHistory(func(s *sql.Selector) { 47 v := make([]interface{}, len(ids)) 48 for i := range v { 49 v[i] = ids[i] 50 } 51 s.Where(sql.NotIn(s.C(FieldID), v...)) 52 }) 53 } 54 55 // IDGT applies the GT predicate on the ID field. 56 func IDGT(id uint32) predicate.CurrencyHistory { 57 return predicate.CurrencyHistory(func(s *sql.Selector) { 58 s.Where(sql.GT(s.C(FieldID), id)) 59 }) 60 } 61 62 // IDGTE applies the GTE predicate on the ID field. 63 func IDGTE(id uint32) predicate.CurrencyHistory { 64 return predicate.CurrencyHistory(func(s *sql.Selector) { 65 s.Where(sql.GTE(s.C(FieldID), id)) 66 }) 67 } 68 69 // IDLT applies the LT predicate on the ID field. 70 func IDLT(id uint32) predicate.CurrencyHistory { 71 return predicate.CurrencyHistory(func(s *sql.Selector) { 72 s.Where(sql.LT(s.C(FieldID), id)) 73 }) 74 } 75 76 // IDLTE applies the LTE predicate on the ID field. 77 func IDLTE(id uint32) predicate.CurrencyHistory { 78 return predicate.CurrencyHistory(func(s *sql.Selector) { 79 s.Where(sql.LTE(s.C(FieldID), id)) 80 }) 81 } 82 83 // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. 84 func CreatedAt(v uint32) predicate.CurrencyHistory { 85 return predicate.CurrencyHistory(func(s *sql.Selector) { 86 s.Where(sql.EQ(s.C(FieldCreatedAt), v)) 87 }) 88 } 89 90 // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. 91 func UpdatedAt(v uint32) predicate.CurrencyHistory { 92 return predicate.CurrencyHistory(func(s *sql.Selector) { 93 s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) 94 }) 95 } 96 97 // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. 98 func DeletedAt(v uint32) predicate.CurrencyHistory { 99 return predicate.CurrencyHistory(func(s *sql.Selector) { 100 s.Where(sql.EQ(s.C(FieldDeletedAt), v)) 101 }) 102 } 103 104 // EntID applies equality check predicate on the "ent_id" field. It's identical to EntIDEQ. 105 func EntID(v uuid.UUID) predicate.CurrencyHistory { 106 return predicate.CurrencyHistory(func(s *sql.Selector) { 107 s.Where(sql.EQ(s.C(FieldEntID), v)) 108 }) 109 } 110 111 // CoinTypeID applies equality check predicate on the "coin_type_id" field. It's identical to CoinTypeIDEQ. 112 func CoinTypeID(v uuid.UUID) predicate.CurrencyHistory { 113 return predicate.CurrencyHistory(func(s *sql.Selector) { 114 s.Where(sql.EQ(s.C(FieldCoinTypeID), v)) 115 }) 116 } 117 118 // FeedType applies equality check predicate on the "feed_type" field. It's identical to FeedTypeEQ. 119 func FeedType(v string) predicate.CurrencyHistory { 120 return predicate.CurrencyHistory(func(s *sql.Selector) { 121 s.Where(sql.EQ(s.C(FieldFeedType), v)) 122 }) 123 } 124 125 // MarketValueHigh applies equality check predicate on the "market_value_high" field. It's identical to MarketValueHighEQ. 126 func MarketValueHigh(v decimal.Decimal) predicate.CurrencyHistory { 127 return predicate.CurrencyHistory(func(s *sql.Selector) { 128 s.Where(sql.EQ(s.C(FieldMarketValueHigh), v)) 129 }) 130 } 131 132 // MarketValueLow applies equality check predicate on the "market_value_low" field. It's identical to MarketValueLowEQ. 133 func MarketValueLow(v decimal.Decimal) predicate.CurrencyHistory { 134 return predicate.CurrencyHistory(func(s *sql.Selector) { 135 s.Where(sql.EQ(s.C(FieldMarketValueLow), v)) 136 }) 137 } 138 139 // CreatedAtEQ applies the EQ predicate on the "created_at" field. 140 func CreatedAtEQ(v uint32) predicate.CurrencyHistory { 141 return predicate.CurrencyHistory(func(s *sql.Selector) { 142 s.Where(sql.EQ(s.C(FieldCreatedAt), v)) 143 }) 144 } 145 146 // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. 147 func CreatedAtNEQ(v uint32) predicate.CurrencyHistory { 148 return predicate.CurrencyHistory(func(s *sql.Selector) { 149 s.Where(sql.NEQ(s.C(FieldCreatedAt), v)) 150 }) 151 } 152 153 // CreatedAtIn applies the In predicate on the "created_at" field. 154 func CreatedAtIn(vs ...uint32) predicate.CurrencyHistory { 155 v := make([]interface{}, len(vs)) 156 for i := range v { 157 v[i] = vs[i] 158 } 159 return predicate.CurrencyHistory(func(s *sql.Selector) { 160 s.Where(sql.In(s.C(FieldCreatedAt), v...)) 161 }) 162 } 163 164 // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. 165 func CreatedAtNotIn(vs ...uint32) predicate.CurrencyHistory { 166 v := make([]interface{}, len(vs)) 167 for i := range v { 168 v[i] = vs[i] 169 } 170 return predicate.CurrencyHistory(func(s *sql.Selector) { 171 s.Where(sql.NotIn(s.C(FieldCreatedAt), v...)) 172 }) 173 } 174 175 // CreatedAtGT applies the GT predicate on the "created_at" field. 176 func CreatedAtGT(v uint32) predicate.CurrencyHistory { 177 return predicate.CurrencyHistory(func(s *sql.Selector) { 178 s.Where(sql.GT(s.C(FieldCreatedAt), v)) 179 }) 180 } 181 182 // CreatedAtGTE applies the GTE predicate on the "created_at" field. 183 func CreatedAtGTE(v uint32) predicate.CurrencyHistory { 184 return predicate.CurrencyHistory(func(s *sql.Selector) { 185 s.Where(sql.GTE(s.C(FieldCreatedAt), v)) 186 }) 187 } 188 189 // CreatedAtLT applies the LT predicate on the "created_at" field. 190 func CreatedAtLT(v uint32) predicate.CurrencyHistory { 191 return predicate.CurrencyHistory(func(s *sql.Selector) { 192 s.Where(sql.LT(s.C(FieldCreatedAt), v)) 193 }) 194 } 195 196 // CreatedAtLTE applies the LTE predicate on the "created_at" field. 197 func CreatedAtLTE(v uint32) predicate.CurrencyHistory { 198 return predicate.CurrencyHistory(func(s *sql.Selector) { 199 s.Where(sql.LTE(s.C(FieldCreatedAt), v)) 200 }) 201 } 202 203 // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. 204 func UpdatedAtEQ(v uint32) predicate.CurrencyHistory { 205 return predicate.CurrencyHistory(func(s *sql.Selector) { 206 s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) 207 }) 208 } 209 210 // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. 211 func UpdatedAtNEQ(v uint32) predicate.CurrencyHistory { 212 return predicate.CurrencyHistory(func(s *sql.Selector) { 213 s.Where(sql.NEQ(s.C(FieldUpdatedAt), v)) 214 }) 215 } 216 217 // UpdatedAtIn applies the In predicate on the "updated_at" field. 218 func UpdatedAtIn(vs ...uint32) predicate.CurrencyHistory { 219 v := make([]interface{}, len(vs)) 220 for i := range v { 221 v[i] = vs[i] 222 } 223 return predicate.CurrencyHistory(func(s *sql.Selector) { 224 s.Where(sql.In(s.C(FieldUpdatedAt), v...)) 225 }) 226 } 227 228 // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. 229 func UpdatedAtNotIn(vs ...uint32) predicate.CurrencyHistory { 230 v := make([]interface{}, len(vs)) 231 for i := range v { 232 v[i] = vs[i] 233 } 234 return predicate.CurrencyHistory(func(s *sql.Selector) { 235 s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...)) 236 }) 237 } 238 239 // UpdatedAtGT applies the GT predicate on the "updated_at" field. 240 func UpdatedAtGT(v uint32) predicate.CurrencyHistory { 241 return predicate.CurrencyHistory(func(s *sql.Selector) { 242 s.Where(sql.GT(s.C(FieldUpdatedAt), v)) 243 }) 244 } 245 246 // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. 247 func UpdatedAtGTE(v uint32) predicate.CurrencyHistory { 248 return predicate.CurrencyHistory(func(s *sql.Selector) { 249 s.Where(sql.GTE(s.C(FieldUpdatedAt), v)) 250 }) 251 } 252 253 // UpdatedAtLT applies the LT predicate on the "updated_at" field. 254 func UpdatedAtLT(v uint32) predicate.CurrencyHistory { 255 return predicate.CurrencyHistory(func(s *sql.Selector) { 256 s.Where(sql.LT(s.C(FieldUpdatedAt), v)) 257 }) 258 } 259 260 // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. 261 func UpdatedAtLTE(v uint32) predicate.CurrencyHistory { 262 return predicate.CurrencyHistory(func(s *sql.Selector) { 263 s.Where(sql.LTE(s.C(FieldUpdatedAt), v)) 264 }) 265 } 266 267 // DeletedAtEQ applies the EQ predicate on the "deleted_at" field. 268 func DeletedAtEQ(v uint32) predicate.CurrencyHistory { 269 return predicate.CurrencyHistory(func(s *sql.Selector) { 270 s.Where(sql.EQ(s.C(FieldDeletedAt), v)) 271 }) 272 } 273 274 // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. 275 func DeletedAtNEQ(v uint32) predicate.CurrencyHistory { 276 return predicate.CurrencyHistory(func(s *sql.Selector) { 277 s.Where(sql.NEQ(s.C(FieldDeletedAt), v)) 278 }) 279 } 280 281 // DeletedAtIn applies the In predicate on the "deleted_at" field. 282 func DeletedAtIn(vs ...uint32) predicate.CurrencyHistory { 283 v := make([]interface{}, len(vs)) 284 for i := range v { 285 v[i] = vs[i] 286 } 287 return predicate.CurrencyHistory(func(s *sql.Selector) { 288 s.Where(sql.In(s.C(FieldDeletedAt), v...)) 289 }) 290 } 291 292 // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. 293 func DeletedAtNotIn(vs ...uint32) predicate.CurrencyHistory { 294 v := make([]interface{}, len(vs)) 295 for i := range v { 296 v[i] = vs[i] 297 } 298 return predicate.CurrencyHistory(func(s *sql.Selector) { 299 s.Where(sql.NotIn(s.C(FieldDeletedAt), v...)) 300 }) 301 } 302 303 // DeletedAtGT applies the GT predicate on the "deleted_at" field. 304 func DeletedAtGT(v uint32) predicate.CurrencyHistory { 305 return predicate.CurrencyHistory(func(s *sql.Selector) { 306 s.Where(sql.GT(s.C(FieldDeletedAt), v)) 307 }) 308 } 309 310 // DeletedAtGTE applies the GTE predicate on the "deleted_at" field. 311 func DeletedAtGTE(v uint32) predicate.CurrencyHistory { 312 return predicate.CurrencyHistory(func(s *sql.Selector) { 313 s.Where(sql.GTE(s.C(FieldDeletedAt), v)) 314 }) 315 } 316 317 // DeletedAtLT applies the LT predicate on the "deleted_at" field. 318 func DeletedAtLT(v uint32) predicate.CurrencyHistory { 319 return predicate.CurrencyHistory(func(s *sql.Selector) { 320 s.Where(sql.LT(s.C(FieldDeletedAt), v)) 321 }) 322 } 323 324 // DeletedAtLTE applies the LTE predicate on the "deleted_at" field. 325 func DeletedAtLTE(v uint32) predicate.CurrencyHistory { 326 return predicate.CurrencyHistory(func(s *sql.Selector) { 327 s.Where(sql.LTE(s.C(FieldDeletedAt), v)) 328 }) 329 } 330 331 // EntIDEQ applies the EQ predicate on the "ent_id" field. 332 func EntIDEQ(v uuid.UUID) predicate.CurrencyHistory { 333 return predicate.CurrencyHistory(func(s *sql.Selector) { 334 s.Where(sql.EQ(s.C(FieldEntID), v)) 335 }) 336 } 337 338 // EntIDNEQ applies the NEQ predicate on the "ent_id" field. 339 func EntIDNEQ(v uuid.UUID) predicate.CurrencyHistory { 340 return predicate.CurrencyHistory(func(s *sql.Selector) { 341 s.Where(sql.NEQ(s.C(FieldEntID), v)) 342 }) 343 } 344 345 // EntIDIn applies the In predicate on the "ent_id" field. 346 func EntIDIn(vs ...uuid.UUID) predicate.CurrencyHistory { 347 v := make([]interface{}, len(vs)) 348 for i := range v { 349 v[i] = vs[i] 350 } 351 return predicate.CurrencyHistory(func(s *sql.Selector) { 352 s.Where(sql.In(s.C(FieldEntID), v...)) 353 }) 354 } 355 356 // EntIDNotIn applies the NotIn predicate on the "ent_id" field. 357 func EntIDNotIn(vs ...uuid.UUID) predicate.CurrencyHistory { 358 v := make([]interface{}, len(vs)) 359 for i := range v { 360 v[i] = vs[i] 361 } 362 return predicate.CurrencyHistory(func(s *sql.Selector) { 363 s.Where(sql.NotIn(s.C(FieldEntID), v...)) 364 }) 365 } 366 367 // EntIDGT applies the GT predicate on the "ent_id" field. 368 func EntIDGT(v uuid.UUID) predicate.CurrencyHistory { 369 return predicate.CurrencyHistory(func(s *sql.Selector) { 370 s.Where(sql.GT(s.C(FieldEntID), v)) 371 }) 372 } 373 374 // EntIDGTE applies the GTE predicate on the "ent_id" field. 375 func EntIDGTE(v uuid.UUID) predicate.CurrencyHistory { 376 return predicate.CurrencyHistory(func(s *sql.Selector) { 377 s.Where(sql.GTE(s.C(FieldEntID), v)) 378 }) 379 } 380 381 // EntIDLT applies the LT predicate on the "ent_id" field. 382 func EntIDLT(v uuid.UUID) predicate.CurrencyHistory { 383 return predicate.CurrencyHistory(func(s *sql.Selector) { 384 s.Where(sql.LT(s.C(FieldEntID), v)) 385 }) 386 } 387 388 // EntIDLTE applies the LTE predicate on the "ent_id" field. 389 func EntIDLTE(v uuid.UUID) predicate.CurrencyHistory { 390 return predicate.CurrencyHistory(func(s *sql.Selector) { 391 s.Where(sql.LTE(s.C(FieldEntID), v)) 392 }) 393 } 394 395 // CoinTypeIDEQ applies the EQ predicate on the "coin_type_id" field. 396 func CoinTypeIDEQ(v uuid.UUID) predicate.CurrencyHistory { 397 return predicate.CurrencyHistory(func(s *sql.Selector) { 398 s.Where(sql.EQ(s.C(FieldCoinTypeID), v)) 399 }) 400 } 401 402 // CoinTypeIDNEQ applies the NEQ predicate on the "coin_type_id" field. 403 func CoinTypeIDNEQ(v uuid.UUID) predicate.CurrencyHistory { 404 return predicate.CurrencyHistory(func(s *sql.Selector) { 405 s.Where(sql.NEQ(s.C(FieldCoinTypeID), v)) 406 }) 407 } 408 409 // CoinTypeIDIn applies the In predicate on the "coin_type_id" field. 410 func CoinTypeIDIn(vs ...uuid.UUID) predicate.CurrencyHistory { 411 v := make([]interface{}, len(vs)) 412 for i := range v { 413 v[i] = vs[i] 414 } 415 return predicate.CurrencyHistory(func(s *sql.Selector) { 416 s.Where(sql.In(s.C(FieldCoinTypeID), v...)) 417 }) 418 } 419 420 // CoinTypeIDNotIn applies the NotIn predicate on the "coin_type_id" field. 421 func CoinTypeIDNotIn(vs ...uuid.UUID) predicate.CurrencyHistory { 422 v := make([]interface{}, len(vs)) 423 for i := range v { 424 v[i] = vs[i] 425 } 426 return predicate.CurrencyHistory(func(s *sql.Selector) { 427 s.Where(sql.NotIn(s.C(FieldCoinTypeID), v...)) 428 }) 429 } 430 431 // CoinTypeIDGT applies the GT predicate on the "coin_type_id" field. 432 func CoinTypeIDGT(v uuid.UUID) predicate.CurrencyHistory { 433 return predicate.CurrencyHistory(func(s *sql.Selector) { 434 s.Where(sql.GT(s.C(FieldCoinTypeID), v)) 435 }) 436 } 437 438 // CoinTypeIDGTE applies the GTE predicate on the "coin_type_id" field. 439 func CoinTypeIDGTE(v uuid.UUID) predicate.CurrencyHistory { 440 return predicate.CurrencyHistory(func(s *sql.Selector) { 441 s.Where(sql.GTE(s.C(FieldCoinTypeID), v)) 442 }) 443 } 444 445 // CoinTypeIDLT applies the LT predicate on the "coin_type_id" field. 446 func CoinTypeIDLT(v uuid.UUID) predicate.CurrencyHistory { 447 return predicate.CurrencyHistory(func(s *sql.Selector) { 448 s.Where(sql.LT(s.C(FieldCoinTypeID), v)) 449 }) 450 } 451 452 // CoinTypeIDLTE applies the LTE predicate on the "coin_type_id" field. 453 func CoinTypeIDLTE(v uuid.UUID) predicate.CurrencyHistory { 454 return predicate.CurrencyHistory(func(s *sql.Selector) { 455 s.Where(sql.LTE(s.C(FieldCoinTypeID), v)) 456 }) 457 } 458 459 // CoinTypeIDIsNil applies the IsNil predicate on the "coin_type_id" field. 460 func CoinTypeIDIsNil() predicate.CurrencyHistory { 461 return predicate.CurrencyHistory(func(s *sql.Selector) { 462 s.Where(sql.IsNull(s.C(FieldCoinTypeID))) 463 }) 464 } 465 466 // CoinTypeIDNotNil applies the NotNil predicate on the "coin_type_id" field. 467 func CoinTypeIDNotNil() predicate.CurrencyHistory { 468 return predicate.CurrencyHistory(func(s *sql.Selector) { 469 s.Where(sql.NotNull(s.C(FieldCoinTypeID))) 470 }) 471 } 472 473 // FeedTypeEQ applies the EQ predicate on the "feed_type" field. 474 func FeedTypeEQ(v string) predicate.CurrencyHistory { 475 return predicate.CurrencyHistory(func(s *sql.Selector) { 476 s.Where(sql.EQ(s.C(FieldFeedType), v)) 477 }) 478 } 479 480 // FeedTypeNEQ applies the NEQ predicate on the "feed_type" field. 481 func FeedTypeNEQ(v string) predicate.CurrencyHistory { 482 return predicate.CurrencyHistory(func(s *sql.Selector) { 483 s.Where(sql.NEQ(s.C(FieldFeedType), v)) 484 }) 485 } 486 487 // FeedTypeIn applies the In predicate on the "feed_type" field. 488 func FeedTypeIn(vs ...string) predicate.CurrencyHistory { 489 v := make([]interface{}, len(vs)) 490 for i := range v { 491 v[i] = vs[i] 492 } 493 return predicate.CurrencyHistory(func(s *sql.Selector) { 494 s.Where(sql.In(s.C(FieldFeedType), v...)) 495 }) 496 } 497 498 // FeedTypeNotIn applies the NotIn predicate on the "feed_type" field. 499 func FeedTypeNotIn(vs ...string) predicate.CurrencyHistory { 500 v := make([]interface{}, len(vs)) 501 for i := range v { 502 v[i] = vs[i] 503 } 504 return predicate.CurrencyHistory(func(s *sql.Selector) { 505 s.Where(sql.NotIn(s.C(FieldFeedType), v...)) 506 }) 507 } 508 509 // FeedTypeGT applies the GT predicate on the "feed_type" field. 510 func FeedTypeGT(v string) predicate.CurrencyHistory { 511 return predicate.CurrencyHistory(func(s *sql.Selector) { 512 s.Where(sql.GT(s.C(FieldFeedType), v)) 513 }) 514 } 515 516 // FeedTypeGTE applies the GTE predicate on the "feed_type" field. 517 func FeedTypeGTE(v string) predicate.CurrencyHistory { 518 return predicate.CurrencyHistory(func(s *sql.Selector) { 519 s.Where(sql.GTE(s.C(FieldFeedType), v)) 520 }) 521 } 522 523 // FeedTypeLT applies the LT predicate on the "feed_type" field. 524 func FeedTypeLT(v string) predicate.CurrencyHistory { 525 return predicate.CurrencyHistory(func(s *sql.Selector) { 526 s.Where(sql.LT(s.C(FieldFeedType), v)) 527 }) 528 } 529 530 // FeedTypeLTE applies the LTE predicate on the "feed_type" field. 531 func FeedTypeLTE(v string) predicate.CurrencyHistory { 532 return predicate.CurrencyHistory(func(s *sql.Selector) { 533 s.Where(sql.LTE(s.C(FieldFeedType), v)) 534 }) 535 } 536 537 // FeedTypeContains applies the Contains predicate on the "feed_type" field. 538 func FeedTypeContains(v string) predicate.CurrencyHistory { 539 return predicate.CurrencyHistory(func(s *sql.Selector) { 540 s.Where(sql.Contains(s.C(FieldFeedType), v)) 541 }) 542 } 543 544 // FeedTypeHasPrefix applies the HasPrefix predicate on the "feed_type" field. 545 func FeedTypeHasPrefix(v string) predicate.CurrencyHistory { 546 return predicate.CurrencyHistory(func(s *sql.Selector) { 547 s.Where(sql.HasPrefix(s.C(FieldFeedType), v)) 548 }) 549 } 550 551 // FeedTypeHasSuffix applies the HasSuffix predicate on the "feed_type" field. 552 func FeedTypeHasSuffix(v string) predicate.CurrencyHistory { 553 return predicate.CurrencyHistory(func(s *sql.Selector) { 554 s.Where(sql.HasSuffix(s.C(FieldFeedType), v)) 555 }) 556 } 557 558 // FeedTypeIsNil applies the IsNil predicate on the "feed_type" field. 559 func FeedTypeIsNil() predicate.CurrencyHistory { 560 return predicate.CurrencyHistory(func(s *sql.Selector) { 561 s.Where(sql.IsNull(s.C(FieldFeedType))) 562 }) 563 } 564 565 // FeedTypeNotNil applies the NotNil predicate on the "feed_type" field. 566 func FeedTypeNotNil() predicate.CurrencyHistory { 567 return predicate.CurrencyHistory(func(s *sql.Selector) { 568 s.Where(sql.NotNull(s.C(FieldFeedType))) 569 }) 570 } 571 572 // FeedTypeEqualFold applies the EqualFold predicate on the "feed_type" field. 573 func FeedTypeEqualFold(v string) predicate.CurrencyHistory { 574 return predicate.CurrencyHistory(func(s *sql.Selector) { 575 s.Where(sql.EqualFold(s.C(FieldFeedType), v)) 576 }) 577 } 578 579 // FeedTypeContainsFold applies the ContainsFold predicate on the "feed_type" field. 580 func FeedTypeContainsFold(v string) predicate.CurrencyHistory { 581 return predicate.CurrencyHistory(func(s *sql.Selector) { 582 s.Where(sql.ContainsFold(s.C(FieldFeedType), v)) 583 }) 584 } 585 586 // MarketValueHighEQ applies the EQ predicate on the "market_value_high" field. 587 func MarketValueHighEQ(v decimal.Decimal) predicate.CurrencyHistory { 588 return predicate.CurrencyHistory(func(s *sql.Selector) { 589 s.Where(sql.EQ(s.C(FieldMarketValueHigh), v)) 590 }) 591 } 592 593 // MarketValueHighNEQ applies the NEQ predicate on the "market_value_high" field. 594 func MarketValueHighNEQ(v decimal.Decimal) predicate.CurrencyHistory { 595 return predicate.CurrencyHistory(func(s *sql.Selector) { 596 s.Where(sql.NEQ(s.C(FieldMarketValueHigh), v)) 597 }) 598 } 599 600 // MarketValueHighIn applies the In predicate on the "market_value_high" field. 601 func MarketValueHighIn(vs ...decimal.Decimal) predicate.CurrencyHistory { 602 v := make([]interface{}, len(vs)) 603 for i := range v { 604 v[i] = vs[i] 605 } 606 return predicate.CurrencyHistory(func(s *sql.Selector) { 607 s.Where(sql.In(s.C(FieldMarketValueHigh), v...)) 608 }) 609 } 610 611 // MarketValueHighNotIn applies the NotIn predicate on the "market_value_high" field. 612 func MarketValueHighNotIn(vs ...decimal.Decimal) predicate.CurrencyHistory { 613 v := make([]interface{}, len(vs)) 614 for i := range v { 615 v[i] = vs[i] 616 } 617 return predicate.CurrencyHistory(func(s *sql.Selector) { 618 s.Where(sql.NotIn(s.C(FieldMarketValueHigh), v...)) 619 }) 620 } 621 622 // MarketValueHighGT applies the GT predicate on the "market_value_high" field. 623 func MarketValueHighGT(v decimal.Decimal) predicate.CurrencyHistory { 624 return predicate.CurrencyHistory(func(s *sql.Selector) { 625 s.Where(sql.GT(s.C(FieldMarketValueHigh), v)) 626 }) 627 } 628 629 // MarketValueHighGTE applies the GTE predicate on the "market_value_high" field. 630 func MarketValueHighGTE(v decimal.Decimal) predicate.CurrencyHistory { 631 return predicate.CurrencyHistory(func(s *sql.Selector) { 632 s.Where(sql.GTE(s.C(FieldMarketValueHigh), v)) 633 }) 634 } 635 636 // MarketValueHighLT applies the LT predicate on the "market_value_high" field. 637 func MarketValueHighLT(v decimal.Decimal) predicate.CurrencyHistory { 638 return predicate.CurrencyHistory(func(s *sql.Selector) { 639 s.Where(sql.LT(s.C(FieldMarketValueHigh), v)) 640 }) 641 } 642 643 // MarketValueHighLTE applies the LTE predicate on the "market_value_high" field. 644 func MarketValueHighLTE(v decimal.Decimal) predicate.CurrencyHistory { 645 return predicate.CurrencyHistory(func(s *sql.Selector) { 646 s.Where(sql.LTE(s.C(FieldMarketValueHigh), v)) 647 }) 648 } 649 650 // MarketValueHighIsNil applies the IsNil predicate on the "market_value_high" field. 651 func MarketValueHighIsNil() predicate.CurrencyHistory { 652 return predicate.CurrencyHistory(func(s *sql.Selector) { 653 s.Where(sql.IsNull(s.C(FieldMarketValueHigh))) 654 }) 655 } 656 657 // MarketValueHighNotNil applies the NotNil predicate on the "market_value_high" field. 658 func MarketValueHighNotNil() predicate.CurrencyHistory { 659 return predicate.CurrencyHistory(func(s *sql.Selector) { 660 s.Where(sql.NotNull(s.C(FieldMarketValueHigh))) 661 }) 662 } 663 664 // MarketValueLowEQ applies the EQ predicate on the "market_value_low" field. 665 func MarketValueLowEQ(v decimal.Decimal) predicate.CurrencyHistory { 666 return predicate.CurrencyHistory(func(s *sql.Selector) { 667 s.Where(sql.EQ(s.C(FieldMarketValueLow), v)) 668 }) 669 } 670 671 // MarketValueLowNEQ applies the NEQ predicate on the "market_value_low" field. 672 func MarketValueLowNEQ(v decimal.Decimal) predicate.CurrencyHistory { 673 return predicate.CurrencyHistory(func(s *sql.Selector) { 674 s.Where(sql.NEQ(s.C(FieldMarketValueLow), v)) 675 }) 676 } 677 678 // MarketValueLowIn applies the In predicate on the "market_value_low" field. 679 func MarketValueLowIn(vs ...decimal.Decimal) predicate.CurrencyHistory { 680 v := make([]interface{}, len(vs)) 681 for i := range v { 682 v[i] = vs[i] 683 } 684 return predicate.CurrencyHistory(func(s *sql.Selector) { 685 s.Where(sql.In(s.C(FieldMarketValueLow), v...)) 686 }) 687 } 688 689 // MarketValueLowNotIn applies the NotIn predicate on the "market_value_low" field. 690 func MarketValueLowNotIn(vs ...decimal.Decimal) predicate.CurrencyHistory { 691 v := make([]interface{}, len(vs)) 692 for i := range v { 693 v[i] = vs[i] 694 } 695 return predicate.CurrencyHistory(func(s *sql.Selector) { 696 s.Where(sql.NotIn(s.C(FieldMarketValueLow), v...)) 697 }) 698 } 699 700 // MarketValueLowGT applies the GT predicate on the "market_value_low" field. 701 func MarketValueLowGT(v decimal.Decimal) predicate.CurrencyHistory { 702 return predicate.CurrencyHistory(func(s *sql.Selector) { 703 s.Where(sql.GT(s.C(FieldMarketValueLow), v)) 704 }) 705 } 706 707 // MarketValueLowGTE applies the GTE predicate on the "market_value_low" field. 708 func MarketValueLowGTE(v decimal.Decimal) predicate.CurrencyHistory { 709 return predicate.CurrencyHistory(func(s *sql.Selector) { 710 s.Where(sql.GTE(s.C(FieldMarketValueLow), v)) 711 }) 712 } 713 714 // MarketValueLowLT applies the LT predicate on the "market_value_low" field. 715 func MarketValueLowLT(v decimal.Decimal) predicate.CurrencyHistory { 716 return predicate.CurrencyHistory(func(s *sql.Selector) { 717 s.Where(sql.LT(s.C(FieldMarketValueLow), v)) 718 }) 719 } 720 721 // MarketValueLowLTE applies the LTE predicate on the "market_value_low" field. 722 func MarketValueLowLTE(v decimal.Decimal) predicate.CurrencyHistory { 723 return predicate.CurrencyHistory(func(s *sql.Selector) { 724 s.Where(sql.LTE(s.C(FieldMarketValueLow), v)) 725 }) 726 } 727 728 // MarketValueLowIsNil applies the IsNil predicate on the "market_value_low" field. 729 func MarketValueLowIsNil() predicate.CurrencyHistory { 730 return predicate.CurrencyHistory(func(s *sql.Selector) { 731 s.Where(sql.IsNull(s.C(FieldMarketValueLow))) 732 }) 733 } 734 735 // MarketValueLowNotNil applies the NotNil predicate on the "market_value_low" field. 736 func MarketValueLowNotNil() predicate.CurrencyHistory { 737 return predicate.CurrencyHistory(func(s *sql.Selector) { 738 s.Where(sql.NotNull(s.C(FieldMarketValueLow))) 739 }) 740 } 741 742 // And groups predicates with the AND operator between them. 743 func And(predicates ...predicate.CurrencyHistory) predicate.CurrencyHistory { 744 return predicate.CurrencyHistory(func(s *sql.Selector) { 745 s1 := s.Clone().SetP(nil) 746 for _, p := range predicates { 747 p(s1) 748 } 749 s.Where(s1.P()) 750 }) 751 } 752 753 // Or groups predicates with the OR operator between them. 754 func Or(predicates ...predicate.CurrencyHistory) predicate.CurrencyHistory { 755 return predicate.CurrencyHistory(func(s *sql.Selector) { 756 s1 := s.Clone().SetP(nil) 757 for i, p := range predicates { 758 if i > 0 { 759 s1.Or() 760 } 761 p(s1) 762 } 763 s.Where(s1.P()) 764 }) 765 } 766 767 // Not applies the not operator on the given predicate. 768 func Not(p predicate.CurrencyHistory) predicate.CurrencyHistory { 769 return predicate.CurrencyHistory(func(s *sql.Selector) { 770 p(s.Not()) 771 }) 772 }