where.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. // Code generated by ent, DO NOT EDIT.
  2. package batchimageevent
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "github.com/Wei-Shaw/sub2api/ent/predicate"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id int64) predicate.BatchImageEvent {
  10. return predicate.BatchImageEvent(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id int64) predicate.BatchImageEvent {
  14. return predicate.BatchImageEvent(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id int64) predicate.BatchImageEvent {
  18. return predicate.BatchImageEvent(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...int64) predicate.BatchImageEvent {
  22. return predicate.BatchImageEvent(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...int64) predicate.BatchImageEvent {
  26. return predicate.BatchImageEvent(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id int64) predicate.BatchImageEvent {
  30. return predicate.BatchImageEvent(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id int64) predicate.BatchImageEvent {
  34. return predicate.BatchImageEvent(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id int64) predicate.BatchImageEvent {
  38. return predicate.BatchImageEvent(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id int64) predicate.BatchImageEvent {
  42. return predicate.BatchImageEvent(sql.FieldLTE(FieldID, id))
  43. }
  44. // JobID applies equality check predicate on the "job_id" field. It's identical to JobIDEQ.
  45. func JobID(v string) predicate.BatchImageEvent {
  46. return predicate.BatchImageEvent(sql.FieldEQ(FieldJobID, v))
  47. }
  48. // EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.
  49. func EventType(v string) predicate.BatchImageEvent {
  50. return predicate.BatchImageEvent(sql.FieldEQ(FieldEventType, v))
  51. }
  52. // EventHash applies equality check predicate on the "event_hash" field. It's identical to EventHashEQ.
  53. func EventHash(v string) predicate.BatchImageEvent {
  54. return predicate.BatchImageEvent(sql.FieldEQ(FieldEventHash, v))
  55. }
  56. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  57. func CreatedAt(v time.Time) predicate.BatchImageEvent {
  58. return predicate.BatchImageEvent(sql.FieldEQ(FieldCreatedAt, v))
  59. }
  60. // JobIDEQ applies the EQ predicate on the "job_id" field.
  61. func JobIDEQ(v string) predicate.BatchImageEvent {
  62. return predicate.BatchImageEvent(sql.FieldEQ(FieldJobID, v))
  63. }
  64. // JobIDNEQ applies the NEQ predicate on the "job_id" field.
  65. func JobIDNEQ(v string) predicate.BatchImageEvent {
  66. return predicate.BatchImageEvent(sql.FieldNEQ(FieldJobID, v))
  67. }
  68. // JobIDIn applies the In predicate on the "job_id" field.
  69. func JobIDIn(vs ...string) predicate.BatchImageEvent {
  70. return predicate.BatchImageEvent(sql.FieldIn(FieldJobID, vs...))
  71. }
  72. // JobIDNotIn applies the NotIn predicate on the "job_id" field.
  73. func JobIDNotIn(vs ...string) predicate.BatchImageEvent {
  74. return predicate.BatchImageEvent(sql.FieldNotIn(FieldJobID, vs...))
  75. }
  76. // JobIDGT applies the GT predicate on the "job_id" field.
  77. func JobIDGT(v string) predicate.BatchImageEvent {
  78. return predicate.BatchImageEvent(sql.FieldGT(FieldJobID, v))
  79. }
  80. // JobIDGTE applies the GTE predicate on the "job_id" field.
  81. func JobIDGTE(v string) predicate.BatchImageEvent {
  82. return predicate.BatchImageEvent(sql.FieldGTE(FieldJobID, v))
  83. }
  84. // JobIDLT applies the LT predicate on the "job_id" field.
  85. func JobIDLT(v string) predicate.BatchImageEvent {
  86. return predicate.BatchImageEvent(sql.FieldLT(FieldJobID, v))
  87. }
  88. // JobIDLTE applies the LTE predicate on the "job_id" field.
  89. func JobIDLTE(v string) predicate.BatchImageEvent {
  90. return predicate.BatchImageEvent(sql.FieldLTE(FieldJobID, v))
  91. }
  92. // JobIDContains applies the Contains predicate on the "job_id" field.
  93. func JobIDContains(v string) predicate.BatchImageEvent {
  94. return predicate.BatchImageEvent(sql.FieldContains(FieldJobID, v))
  95. }
  96. // JobIDHasPrefix applies the HasPrefix predicate on the "job_id" field.
  97. func JobIDHasPrefix(v string) predicate.BatchImageEvent {
  98. return predicate.BatchImageEvent(sql.FieldHasPrefix(FieldJobID, v))
  99. }
  100. // JobIDHasSuffix applies the HasSuffix predicate on the "job_id" field.
  101. func JobIDHasSuffix(v string) predicate.BatchImageEvent {
  102. return predicate.BatchImageEvent(sql.FieldHasSuffix(FieldJobID, v))
  103. }
  104. // JobIDEqualFold applies the EqualFold predicate on the "job_id" field.
  105. func JobIDEqualFold(v string) predicate.BatchImageEvent {
  106. return predicate.BatchImageEvent(sql.FieldEqualFold(FieldJobID, v))
  107. }
  108. // JobIDContainsFold applies the ContainsFold predicate on the "job_id" field.
  109. func JobIDContainsFold(v string) predicate.BatchImageEvent {
  110. return predicate.BatchImageEvent(sql.FieldContainsFold(FieldJobID, v))
  111. }
  112. // EventTypeEQ applies the EQ predicate on the "event_type" field.
  113. func EventTypeEQ(v string) predicate.BatchImageEvent {
  114. return predicate.BatchImageEvent(sql.FieldEQ(FieldEventType, v))
  115. }
  116. // EventTypeNEQ applies the NEQ predicate on the "event_type" field.
  117. func EventTypeNEQ(v string) predicate.BatchImageEvent {
  118. return predicate.BatchImageEvent(sql.FieldNEQ(FieldEventType, v))
  119. }
  120. // EventTypeIn applies the In predicate on the "event_type" field.
  121. func EventTypeIn(vs ...string) predicate.BatchImageEvent {
  122. return predicate.BatchImageEvent(sql.FieldIn(FieldEventType, vs...))
  123. }
  124. // EventTypeNotIn applies the NotIn predicate on the "event_type" field.
  125. func EventTypeNotIn(vs ...string) predicate.BatchImageEvent {
  126. return predicate.BatchImageEvent(sql.FieldNotIn(FieldEventType, vs...))
  127. }
  128. // EventTypeGT applies the GT predicate on the "event_type" field.
  129. func EventTypeGT(v string) predicate.BatchImageEvent {
  130. return predicate.BatchImageEvent(sql.FieldGT(FieldEventType, v))
  131. }
  132. // EventTypeGTE applies the GTE predicate on the "event_type" field.
  133. func EventTypeGTE(v string) predicate.BatchImageEvent {
  134. return predicate.BatchImageEvent(sql.FieldGTE(FieldEventType, v))
  135. }
  136. // EventTypeLT applies the LT predicate on the "event_type" field.
  137. func EventTypeLT(v string) predicate.BatchImageEvent {
  138. return predicate.BatchImageEvent(sql.FieldLT(FieldEventType, v))
  139. }
  140. // EventTypeLTE applies the LTE predicate on the "event_type" field.
  141. func EventTypeLTE(v string) predicate.BatchImageEvent {
  142. return predicate.BatchImageEvent(sql.FieldLTE(FieldEventType, v))
  143. }
  144. // EventTypeContains applies the Contains predicate on the "event_type" field.
  145. func EventTypeContains(v string) predicate.BatchImageEvent {
  146. return predicate.BatchImageEvent(sql.FieldContains(FieldEventType, v))
  147. }
  148. // EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.
  149. func EventTypeHasPrefix(v string) predicate.BatchImageEvent {
  150. return predicate.BatchImageEvent(sql.FieldHasPrefix(FieldEventType, v))
  151. }
  152. // EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.
  153. func EventTypeHasSuffix(v string) predicate.BatchImageEvent {
  154. return predicate.BatchImageEvent(sql.FieldHasSuffix(FieldEventType, v))
  155. }
  156. // EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.
  157. func EventTypeEqualFold(v string) predicate.BatchImageEvent {
  158. return predicate.BatchImageEvent(sql.FieldEqualFold(FieldEventType, v))
  159. }
  160. // EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.
  161. func EventTypeContainsFold(v string) predicate.BatchImageEvent {
  162. return predicate.BatchImageEvent(sql.FieldContainsFold(FieldEventType, v))
  163. }
  164. // PayloadIsNil applies the IsNil predicate on the "payload" field.
  165. func PayloadIsNil() predicate.BatchImageEvent {
  166. return predicate.BatchImageEvent(sql.FieldIsNull(FieldPayload))
  167. }
  168. // PayloadNotNil applies the NotNil predicate on the "payload" field.
  169. func PayloadNotNil() predicate.BatchImageEvent {
  170. return predicate.BatchImageEvent(sql.FieldNotNull(FieldPayload))
  171. }
  172. // EventHashEQ applies the EQ predicate on the "event_hash" field.
  173. func EventHashEQ(v string) predicate.BatchImageEvent {
  174. return predicate.BatchImageEvent(sql.FieldEQ(FieldEventHash, v))
  175. }
  176. // EventHashNEQ applies the NEQ predicate on the "event_hash" field.
  177. func EventHashNEQ(v string) predicate.BatchImageEvent {
  178. return predicate.BatchImageEvent(sql.FieldNEQ(FieldEventHash, v))
  179. }
  180. // EventHashIn applies the In predicate on the "event_hash" field.
  181. func EventHashIn(vs ...string) predicate.BatchImageEvent {
  182. return predicate.BatchImageEvent(sql.FieldIn(FieldEventHash, vs...))
  183. }
  184. // EventHashNotIn applies the NotIn predicate on the "event_hash" field.
  185. func EventHashNotIn(vs ...string) predicate.BatchImageEvent {
  186. return predicate.BatchImageEvent(sql.FieldNotIn(FieldEventHash, vs...))
  187. }
  188. // EventHashGT applies the GT predicate on the "event_hash" field.
  189. func EventHashGT(v string) predicate.BatchImageEvent {
  190. return predicate.BatchImageEvent(sql.FieldGT(FieldEventHash, v))
  191. }
  192. // EventHashGTE applies the GTE predicate on the "event_hash" field.
  193. func EventHashGTE(v string) predicate.BatchImageEvent {
  194. return predicate.BatchImageEvent(sql.FieldGTE(FieldEventHash, v))
  195. }
  196. // EventHashLT applies the LT predicate on the "event_hash" field.
  197. func EventHashLT(v string) predicate.BatchImageEvent {
  198. return predicate.BatchImageEvent(sql.FieldLT(FieldEventHash, v))
  199. }
  200. // EventHashLTE applies the LTE predicate on the "event_hash" field.
  201. func EventHashLTE(v string) predicate.BatchImageEvent {
  202. return predicate.BatchImageEvent(sql.FieldLTE(FieldEventHash, v))
  203. }
  204. // EventHashContains applies the Contains predicate on the "event_hash" field.
  205. func EventHashContains(v string) predicate.BatchImageEvent {
  206. return predicate.BatchImageEvent(sql.FieldContains(FieldEventHash, v))
  207. }
  208. // EventHashHasPrefix applies the HasPrefix predicate on the "event_hash" field.
  209. func EventHashHasPrefix(v string) predicate.BatchImageEvent {
  210. return predicate.BatchImageEvent(sql.FieldHasPrefix(FieldEventHash, v))
  211. }
  212. // EventHashHasSuffix applies the HasSuffix predicate on the "event_hash" field.
  213. func EventHashHasSuffix(v string) predicate.BatchImageEvent {
  214. return predicate.BatchImageEvent(sql.FieldHasSuffix(FieldEventHash, v))
  215. }
  216. // EventHashIsNil applies the IsNil predicate on the "event_hash" field.
  217. func EventHashIsNil() predicate.BatchImageEvent {
  218. return predicate.BatchImageEvent(sql.FieldIsNull(FieldEventHash))
  219. }
  220. // EventHashNotNil applies the NotNil predicate on the "event_hash" field.
  221. func EventHashNotNil() predicate.BatchImageEvent {
  222. return predicate.BatchImageEvent(sql.FieldNotNull(FieldEventHash))
  223. }
  224. // EventHashEqualFold applies the EqualFold predicate on the "event_hash" field.
  225. func EventHashEqualFold(v string) predicate.BatchImageEvent {
  226. return predicate.BatchImageEvent(sql.FieldEqualFold(FieldEventHash, v))
  227. }
  228. // EventHashContainsFold applies the ContainsFold predicate on the "event_hash" field.
  229. func EventHashContainsFold(v string) predicate.BatchImageEvent {
  230. return predicate.BatchImageEvent(sql.FieldContainsFold(FieldEventHash, v))
  231. }
  232. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  233. func CreatedAtEQ(v time.Time) predicate.BatchImageEvent {
  234. return predicate.BatchImageEvent(sql.FieldEQ(FieldCreatedAt, v))
  235. }
  236. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  237. func CreatedAtNEQ(v time.Time) predicate.BatchImageEvent {
  238. return predicate.BatchImageEvent(sql.FieldNEQ(FieldCreatedAt, v))
  239. }
  240. // CreatedAtIn applies the In predicate on the "created_at" field.
  241. func CreatedAtIn(vs ...time.Time) predicate.BatchImageEvent {
  242. return predicate.BatchImageEvent(sql.FieldIn(FieldCreatedAt, vs...))
  243. }
  244. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  245. func CreatedAtNotIn(vs ...time.Time) predicate.BatchImageEvent {
  246. return predicate.BatchImageEvent(sql.FieldNotIn(FieldCreatedAt, vs...))
  247. }
  248. // CreatedAtGT applies the GT predicate on the "created_at" field.
  249. func CreatedAtGT(v time.Time) predicate.BatchImageEvent {
  250. return predicate.BatchImageEvent(sql.FieldGT(FieldCreatedAt, v))
  251. }
  252. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  253. func CreatedAtGTE(v time.Time) predicate.BatchImageEvent {
  254. return predicate.BatchImageEvent(sql.FieldGTE(FieldCreatedAt, v))
  255. }
  256. // CreatedAtLT applies the LT predicate on the "created_at" field.
  257. func CreatedAtLT(v time.Time) predicate.BatchImageEvent {
  258. return predicate.BatchImageEvent(sql.FieldLT(FieldCreatedAt, v))
  259. }
  260. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  261. func CreatedAtLTE(v time.Time) predicate.BatchImageEvent {
  262. return predicate.BatchImageEvent(sql.FieldLTE(FieldCreatedAt, v))
  263. }
  264. // And groups predicates with the AND operator between them.
  265. func And(predicates ...predicate.BatchImageEvent) predicate.BatchImageEvent {
  266. return predicate.BatchImageEvent(sql.AndPredicates(predicates...))
  267. }
  268. // Or groups predicates with the OR operator between them.
  269. func Or(predicates ...predicate.BatchImageEvent) predicate.BatchImageEvent {
  270. return predicate.BatchImageEvent(sql.OrPredicates(predicates...))
  271. }
  272. // Not applies the not operator on the given predicate.
  273. func Not(p predicate.BatchImageEvent) predicate.BatchImageEvent {
  274. return predicate.BatchImageEvent(sql.NotPredicates(p))
  275. }