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