where.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
  1. // Code generated by ent, DO NOT EDIT.
  2. package compapiasynctask
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id uint64) predicate.CompapiAsynctask {
  10. return predicate.CompapiAsynctask(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.CompapiAsynctask {
  14. return predicate.CompapiAsynctask(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.CompapiAsynctask {
  18. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.CompapiAsynctask {
  22. return predicate.CompapiAsynctask(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.CompapiAsynctask {
  26. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.CompapiAsynctask {
  30. return predicate.CompapiAsynctask(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.CompapiAsynctask {
  34. return predicate.CompapiAsynctask(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.CompapiAsynctask {
  38. return predicate.CompapiAsynctask(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.CompapiAsynctask {
  42. return predicate.CompapiAsynctask(sql.FieldLTE(FieldID, id))
  43. }
  44. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  45. func CreatedAt(v time.Time) predicate.CompapiAsynctask {
  46. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCreatedAt, v))
  47. }
  48. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  49. func UpdatedAt(v time.Time) predicate.CompapiAsynctask {
  50. return predicate.CompapiAsynctask(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // AuthToken applies equality check predicate on the "auth_token" field. It's identical to AuthTokenEQ.
  53. func AuthToken(v string) predicate.CompapiAsynctask {
  54. return predicate.CompapiAsynctask(sql.FieldEQ(FieldAuthToken, v))
  55. }
  56. // EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.
  57. func EventType(v string) predicate.CompapiAsynctask {
  58. return predicate.CompapiAsynctask(sql.FieldEQ(FieldEventType, v))
  59. }
  60. // ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.
  61. func ChatID(v string) predicate.CompapiAsynctask {
  62. return predicate.CompapiAsynctask(sql.FieldEQ(FieldChatID, v))
  63. }
  64. // WorkidIdx applies equality check predicate on the "workid_idx" field. It's identical to WorkidIdxEQ.
  65. func WorkidIdx(v int8) predicate.CompapiAsynctask {
  66. return predicate.CompapiAsynctask(sql.FieldEQ(FieldWorkidIdx, v))
  67. }
  68. // OpenaiBase applies equality check predicate on the "openai_base" field. It's identical to OpenaiBaseEQ.
  69. func OpenaiBase(v string) predicate.CompapiAsynctask {
  70. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiBase, v))
  71. }
  72. // OpenaiKey applies equality check predicate on the "openai_key" field. It's identical to OpenaiKeyEQ.
  73. func OpenaiKey(v string) predicate.CompapiAsynctask {
  74. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiKey, v))
  75. }
  76. // RequestRaw applies equality check predicate on the "request_raw" field. It's identical to RequestRawEQ.
  77. func RequestRaw(v string) predicate.CompapiAsynctask {
  78. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRequestRaw, v))
  79. }
  80. // ResponseRaw applies equality check predicate on the "response_raw" field. It's identical to ResponseRawEQ.
  81. func ResponseRaw(v string) predicate.CompapiAsynctask {
  82. return predicate.CompapiAsynctask(sql.FieldEQ(FieldResponseRaw, v))
  83. }
  84. // CallbackURL applies equality check predicate on the "callback_url" field. It's identical to CallbackURLEQ.
  85. func CallbackURL(v string) predicate.CompapiAsynctask {
  86. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackURL, v))
  87. }
  88. // TaskStatus applies equality check predicate on the "task_status" field. It's identical to TaskStatusEQ.
  89. func TaskStatus(v int8) predicate.CompapiAsynctask {
  90. return predicate.CompapiAsynctask(sql.FieldEQ(FieldTaskStatus, v))
  91. }
  92. // RetryCount applies equality check predicate on the "retry_count" field. It's identical to RetryCountEQ.
  93. func RetryCount(v int8) predicate.CompapiAsynctask {
  94. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRetryCount, v))
  95. }
  96. // LastError applies equality check predicate on the "last_error" field. It's identical to LastErrorEQ.
  97. func LastError(v string) predicate.CompapiAsynctask {
  98. return predicate.CompapiAsynctask(sql.FieldEQ(FieldLastError, v))
  99. }
  100. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  101. func CreatedAtEQ(v time.Time) predicate.CompapiAsynctask {
  102. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCreatedAt, v))
  103. }
  104. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  105. func CreatedAtNEQ(v time.Time) predicate.CompapiAsynctask {
  106. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldCreatedAt, v))
  107. }
  108. // CreatedAtIn applies the In predicate on the "created_at" field.
  109. func CreatedAtIn(vs ...time.Time) predicate.CompapiAsynctask {
  110. return predicate.CompapiAsynctask(sql.FieldIn(FieldCreatedAt, vs...))
  111. }
  112. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  113. func CreatedAtNotIn(vs ...time.Time) predicate.CompapiAsynctask {
  114. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldCreatedAt, vs...))
  115. }
  116. // CreatedAtGT applies the GT predicate on the "created_at" field.
  117. func CreatedAtGT(v time.Time) predicate.CompapiAsynctask {
  118. return predicate.CompapiAsynctask(sql.FieldGT(FieldCreatedAt, v))
  119. }
  120. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  121. func CreatedAtGTE(v time.Time) predicate.CompapiAsynctask {
  122. return predicate.CompapiAsynctask(sql.FieldGTE(FieldCreatedAt, v))
  123. }
  124. // CreatedAtLT applies the LT predicate on the "created_at" field.
  125. func CreatedAtLT(v time.Time) predicate.CompapiAsynctask {
  126. return predicate.CompapiAsynctask(sql.FieldLT(FieldCreatedAt, v))
  127. }
  128. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  129. func CreatedAtLTE(v time.Time) predicate.CompapiAsynctask {
  130. return predicate.CompapiAsynctask(sql.FieldLTE(FieldCreatedAt, v))
  131. }
  132. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  133. func UpdatedAtEQ(v time.Time) predicate.CompapiAsynctask {
  134. return predicate.CompapiAsynctask(sql.FieldEQ(FieldUpdatedAt, v))
  135. }
  136. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  137. func UpdatedAtNEQ(v time.Time) predicate.CompapiAsynctask {
  138. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldUpdatedAt, v))
  139. }
  140. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  141. func UpdatedAtIn(vs ...time.Time) predicate.CompapiAsynctask {
  142. return predicate.CompapiAsynctask(sql.FieldIn(FieldUpdatedAt, vs...))
  143. }
  144. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  145. func UpdatedAtNotIn(vs ...time.Time) predicate.CompapiAsynctask {
  146. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldUpdatedAt, vs...))
  147. }
  148. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  149. func UpdatedAtGT(v time.Time) predicate.CompapiAsynctask {
  150. return predicate.CompapiAsynctask(sql.FieldGT(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  153. func UpdatedAtGTE(v time.Time) predicate.CompapiAsynctask {
  154. return predicate.CompapiAsynctask(sql.FieldGTE(FieldUpdatedAt, v))
  155. }
  156. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  157. func UpdatedAtLT(v time.Time) predicate.CompapiAsynctask {
  158. return predicate.CompapiAsynctask(sql.FieldLT(FieldUpdatedAt, v))
  159. }
  160. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  161. func UpdatedAtLTE(v time.Time) predicate.CompapiAsynctask {
  162. return predicate.CompapiAsynctask(sql.FieldLTE(FieldUpdatedAt, v))
  163. }
  164. // AuthTokenEQ applies the EQ predicate on the "auth_token" field.
  165. func AuthTokenEQ(v string) predicate.CompapiAsynctask {
  166. return predicate.CompapiAsynctask(sql.FieldEQ(FieldAuthToken, v))
  167. }
  168. // AuthTokenNEQ applies the NEQ predicate on the "auth_token" field.
  169. func AuthTokenNEQ(v string) predicate.CompapiAsynctask {
  170. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldAuthToken, v))
  171. }
  172. // AuthTokenIn applies the In predicate on the "auth_token" field.
  173. func AuthTokenIn(vs ...string) predicate.CompapiAsynctask {
  174. return predicate.CompapiAsynctask(sql.FieldIn(FieldAuthToken, vs...))
  175. }
  176. // AuthTokenNotIn applies the NotIn predicate on the "auth_token" field.
  177. func AuthTokenNotIn(vs ...string) predicate.CompapiAsynctask {
  178. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldAuthToken, vs...))
  179. }
  180. // AuthTokenGT applies the GT predicate on the "auth_token" field.
  181. func AuthTokenGT(v string) predicate.CompapiAsynctask {
  182. return predicate.CompapiAsynctask(sql.FieldGT(FieldAuthToken, v))
  183. }
  184. // AuthTokenGTE applies the GTE predicate on the "auth_token" field.
  185. func AuthTokenGTE(v string) predicate.CompapiAsynctask {
  186. return predicate.CompapiAsynctask(sql.FieldGTE(FieldAuthToken, v))
  187. }
  188. // AuthTokenLT applies the LT predicate on the "auth_token" field.
  189. func AuthTokenLT(v string) predicate.CompapiAsynctask {
  190. return predicate.CompapiAsynctask(sql.FieldLT(FieldAuthToken, v))
  191. }
  192. // AuthTokenLTE applies the LTE predicate on the "auth_token" field.
  193. func AuthTokenLTE(v string) predicate.CompapiAsynctask {
  194. return predicate.CompapiAsynctask(sql.FieldLTE(FieldAuthToken, v))
  195. }
  196. // AuthTokenContains applies the Contains predicate on the "auth_token" field.
  197. func AuthTokenContains(v string) predicate.CompapiAsynctask {
  198. return predicate.CompapiAsynctask(sql.FieldContains(FieldAuthToken, v))
  199. }
  200. // AuthTokenHasPrefix applies the HasPrefix predicate on the "auth_token" field.
  201. func AuthTokenHasPrefix(v string) predicate.CompapiAsynctask {
  202. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldAuthToken, v))
  203. }
  204. // AuthTokenHasSuffix applies the HasSuffix predicate on the "auth_token" field.
  205. func AuthTokenHasSuffix(v string) predicate.CompapiAsynctask {
  206. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldAuthToken, v))
  207. }
  208. // AuthTokenEqualFold applies the EqualFold predicate on the "auth_token" field.
  209. func AuthTokenEqualFold(v string) predicate.CompapiAsynctask {
  210. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldAuthToken, v))
  211. }
  212. // AuthTokenContainsFold applies the ContainsFold predicate on the "auth_token" field.
  213. func AuthTokenContainsFold(v string) predicate.CompapiAsynctask {
  214. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldAuthToken, v))
  215. }
  216. // EventTypeEQ applies the EQ predicate on the "event_type" field.
  217. func EventTypeEQ(v string) predicate.CompapiAsynctask {
  218. return predicate.CompapiAsynctask(sql.FieldEQ(FieldEventType, v))
  219. }
  220. // EventTypeNEQ applies the NEQ predicate on the "event_type" field.
  221. func EventTypeNEQ(v string) predicate.CompapiAsynctask {
  222. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldEventType, v))
  223. }
  224. // EventTypeIn applies the In predicate on the "event_type" field.
  225. func EventTypeIn(vs ...string) predicate.CompapiAsynctask {
  226. return predicate.CompapiAsynctask(sql.FieldIn(FieldEventType, vs...))
  227. }
  228. // EventTypeNotIn applies the NotIn predicate on the "event_type" field.
  229. func EventTypeNotIn(vs ...string) predicate.CompapiAsynctask {
  230. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldEventType, vs...))
  231. }
  232. // EventTypeGT applies the GT predicate on the "event_type" field.
  233. func EventTypeGT(v string) predicate.CompapiAsynctask {
  234. return predicate.CompapiAsynctask(sql.FieldGT(FieldEventType, v))
  235. }
  236. // EventTypeGTE applies the GTE predicate on the "event_type" field.
  237. func EventTypeGTE(v string) predicate.CompapiAsynctask {
  238. return predicate.CompapiAsynctask(sql.FieldGTE(FieldEventType, v))
  239. }
  240. // EventTypeLT applies the LT predicate on the "event_type" field.
  241. func EventTypeLT(v string) predicate.CompapiAsynctask {
  242. return predicate.CompapiAsynctask(sql.FieldLT(FieldEventType, v))
  243. }
  244. // EventTypeLTE applies the LTE predicate on the "event_type" field.
  245. func EventTypeLTE(v string) predicate.CompapiAsynctask {
  246. return predicate.CompapiAsynctask(sql.FieldLTE(FieldEventType, v))
  247. }
  248. // EventTypeContains applies the Contains predicate on the "event_type" field.
  249. func EventTypeContains(v string) predicate.CompapiAsynctask {
  250. return predicate.CompapiAsynctask(sql.FieldContains(FieldEventType, v))
  251. }
  252. // EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.
  253. func EventTypeHasPrefix(v string) predicate.CompapiAsynctask {
  254. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldEventType, v))
  255. }
  256. // EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.
  257. func EventTypeHasSuffix(v string) predicate.CompapiAsynctask {
  258. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldEventType, v))
  259. }
  260. // EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.
  261. func EventTypeEqualFold(v string) predicate.CompapiAsynctask {
  262. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldEventType, v))
  263. }
  264. // EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.
  265. func EventTypeContainsFold(v string) predicate.CompapiAsynctask {
  266. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldEventType, v))
  267. }
  268. // ChatIDEQ applies the EQ predicate on the "chat_id" field.
  269. func ChatIDEQ(v string) predicate.CompapiAsynctask {
  270. return predicate.CompapiAsynctask(sql.FieldEQ(FieldChatID, v))
  271. }
  272. // ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
  273. func ChatIDNEQ(v string) predicate.CompapiAsynctask {
  274. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldChatID, v))
  275. }
  276. // ChatIDIn applies the In predicate on the "chat_id" field.
  277. func ChatIDIn(vs ...string) predicate.CompapiAsynctask {
  278. return predicate.CompapiAsynctask(sql.FieldIn(FieldChatID, vs...))
  279. }
  280. // ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
  281. func ChatIDNotIn(vs ...string) predicate.CompapiAsynctask {
  282. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldChatID, vs...))
  283. }
  284. // ChatIDGT applies the GT predicate on the "chat_id" field.
  285. func ChatIDGT(v string) predicate.CompapiAsynctask {
  286. return predicate.CompapiAsynctask(sql.FieldGT(FieldChatID, v))
  287. }
  288. // ChatIDGTE applies the GTE predicate on the "chat_id" field.
  289. func ChatIDGTE(v string) predicate.CompapiAsynctask {
  290. return predicate.CompapiAsynctask(sql.FieldGTE(FieldChatID, v))
  291. }
  292. // ChatIDLT applies the LT predicate on the "chat_id" field.
  293. func ChatIDLT(v string) predicate.CompapiAsynctask {
  294. return predicate.CompapiAsynctask(sql.FieldLT(FieldChatID, v))
  295. }
  296. // ChatIDLTE applies the LTE predicate on the "chat_id" field.
  297. func ChatIDLTE(v string) predicate.CompapiAsynctask {
  298. return predicate.CompapiAsynctask(sql.FieldLTE(FieldChatID, v))
  299. }
  300. // ChatIDContains applies the Contains predicate on the "chat_id" field.
  301. func ChatIDContains(v string) predicate.CompapiAsynctask {
  302. return predicate.CompapiAsynctask(sql.FieldContains(FieldChatID, v))
  303. }
  304. // ChatIDHasPrefix applies the HasPrefix predicate on the "chat_id" field.
  305. func ChatIDHasPrefix(v string) predicate.CompapiAsynctask {
  306. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldChatID, v))
  307. }
  308. // ChatIDHasSuffix applies the HasSuffix predicate on the "chat_id" field.
  309. func ChatIDHasSuffix(v string) predicate.CompapiAsynctask {
  310. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldChatID, v))
  311. }
  312. // ChatIDIsNil applies the IsNil predicate on the "chat_id" field.
  313. func ChatIDIsNil() predicate.CompapiAsynctask {
  314. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldChatID))
  315. }
  316. // ChatIDNotNil applies the NotNil predicate on the "chat_id" field.
  317. func ChatIDNotNil() predicate.CompapiAsynctask {
  318. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldChatID))
  319. }
  320. // ChatIDEqualFold applies the EqualFold predicate on the "chat_id" field.
  321. func ChatIDEqualFold(v string) predicate.CompapiAsynctask {
  322. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldChatID, v))
  323. }
  324. // ChatIDContainsFold applies the ContainsFold predicate on the "chat_id" field.
  325. func ChatIDContainsFold(v string) predicate.CompapiAsynctask {
  326. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldChatID, v))
  327. }
  328. // WorkidIdxEQ applies the EQ predicate on the "workid_idx" field.
  329. func WorkidIdxEQ(v int8) predicate.CompapiAsynctask {
  330. return predicate.CompapiAsynctask(sql.FieldEQ(FieldWorkidIdx, v))
  331. }
  332. // WorkidIdxNEQ applies the NEQ predicate on the "workid_idx" field.
  333. func WorkidIdxNEQ(v int8) predicate.CompapiAsynctask {
  334. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldWorkidIdx, v))
  335. }
  336. // WorkidIdxIn applies the In predicate on the "workid_idx" field.
  337. func WorkidIdxIn(vs ...int8) predicate.CompapiAsynctask {
  338. return predicate.CompapiAsynctask(sql.FieldIn(FieldWorkidIdx, vs...))
  339. }
  340. // WorkidIdxNotIn applies the NotIn predicate on the "workid_idx" field.
  341. func WorkidIdxNotIn(vs ...int8) predicate.CompapiAsynctask {
  342. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldWorkidIdx, vs...))
  343. }
  344. // WorkidIdxGT applies the GT predicate on the "workid_idx" field.
  345. func WorkidIdxGT(v int8) predicate.CompapiAsynctask {
  346. return predicate.CompapiAsynctask(sql.FieldGT(FieldWorkidIdx, v))
  347. }
  348. // WorkidIdxGTE applies the GTE predicate on the "workid_idx" field.
  349. func WorkidIdxGTE(v int8) predicate.CompapiAsynctask {
  350. return predicate.CompapiAsynctask(sql.FieldGTE(FieldWorkidIdx, v))
  351. }
  352. // WorkidIdxLT applies the LT predicate on the "workid_idx" field.
  353. func WorkidIdxLT(v int8) predicate.CompapiAsynctask {
  354. return predicate.CompapiAsynctask(sql.FieldLT(FieldWorkidIdx, v))
  355. }
  356. // WorkidIdxLTE applies the LTE predicate on the "workid_idx" field.
  357. func WorkidIdxLTE(v int8) predicate.CompapiAsynctask {
  358. return predicate.CompapiAsynctask(sql.FieldLTE(FieldWorkidIdx, v))
  359. }
  360. // WorkidIdxIsNil applies the IsNil predicate on the "workid_idx" field.
  361. func WorkidIdxIsNil() predicate.CompapiAsynctask {
  362. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldWorkidIdx))
  363. }
  364. // WorkidIdxNotNil applies the NotNil predicate on the "workid_idx" field.
  365. func WorkidIdxNotNil() predicate.CompapiAsynctask {
  366. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldWorkidIdx))
  367. }
  368. // OpenaiBaseEQ applies the EQ predicate on the "openai_base" field.
  369. func OpenaiBaseEQ(v string) predicate.CompapiAsynctask {
  370. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiBase, v))
  371. }
  372. // OpenaiBaseNEQ applies the NEQ predicate on the "openai_base" field.
  373. func OpenaiBaseNEQ(v string) predicate.CompapiAsynctask {
  374. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldOpenaiBase, v))
  375. }
  376. // OpenaiBaseIn applies the In predicate on the "openai_base" field.
  377. func OpenaiBaseIn(vs ...string) predicate.CompapiAsynctask {
  378. return predicate.CompapiAsynctask(sql.FieldIn(FieldOpenaiBase, vs...))
  379. }
  380. // OpenaiBaseNotIn applies the NotIn predicate on the "openai_base" field.
  381. func OpenaiBaseNotIn(vs ...string) predicate.CompapiAsynctask {
  382. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldOpenaiBase, vs...))
  383. }
  384. // OpenaiBaseGT applies the GT predicate on the "openai_base" field.
  385. func OpenaiBaseGT(v string) predicate.CompapiAsynctask {
  386. return predicate.CompapiAsynctask(sql.FieldGT(FieldOpenaiBase, v))
  387. }
  388. // OpenaiBaseGTE applies the GTE predicate on the "openai_base" field.
  389. func OpenaiBaseGTE(v string) predicate.CompapiAsynctask {
  390. return predicate.CompapiAsynctask(sql.FieldGTE(FieldOpenaiBase, v))
  391. }
  392. // OpenaiBaseLT applies the LT predicate on the "openai_base" field.
  393. func OpenaiBaseLT(v string) predicate.CompapiAsynctask {
  394. return predicate.CompapiAsynctask(sql.FieldLT(FieldOpenaiBase, v))
  395. }
  396. // OpenaiBaseLTE applies the LTE predicate on the "openai_base" field.
  397. func OpenaiBaseLTE(v string) predicate.CompapiAsynctask {
  398. return predicate.CompapiAsynctask(sql.FieldLTE(FieldOpenaiBase, v))
  399. }
  400. // OpenaiBaseContains applies the Contains predicate on the "openai_base" field.
  401. func OpenaiBaseContains(v string) predicate.CompapiAsynctask {
  402. return predicate.CompapiAsynctask(sql.FieldContains(FieldOpenaiBase, v))
  403. }
  404. // OpenaiBaseHasPrefix applies the HasPrefix predicate on the "openai_base" field.
  405. func OpenaiBaseHasPrefix(v string) predicate.CompapiAsynctask {
  406. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldOpenaiBase, v))
  407. }
  408. // OpenaiBaseHasSuffix applies the HasSuffix predicate on the "openai_base" field.
  409. func OpenaiBaseHasSuffix(v string) predicate.CompapiAsynctask {
  410. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldOpenaiBase, v))
  411. }
  412. // OpenaiBaseEqualFold applies the EqualFold predicate on the "openai_base" field.
  413. func OpenaiBaseEqualFold(v string) predicate.CompapiAsynctask {
  414. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldOpenaiBase, v))
  415. }
  416. // OpenaiBaseContainsFold applies the ContainsFold predicate on the "openai_base" field.
  417. func OpenaiBaseContainsFold(v string) predicate.CompapiAsynctask {
  418. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldOpenaiBase, v))
  419. }
  420. // OpenaiKeyEQ applies the EQ predicate on the "openai_key" field.
  421. func OpenaiKeyEQ(v string) predicate.CompapiAsynctask {
  422. return predicate.CompapiAsynctask(sql.FieldEQ(FieldOpenaiKey, v))
  423. }
  424. // OpenaiKeyNEQ applies the NEQ predicate on the "openai_key" field.
  425. func OpenaiKeyNEQ(v string) predicate.CompapiAsynctask {
  426. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldOpenaiKey, v))
  427. }
  428. // OpenaiKeyIn applies the In predicate on the "openai_key" field.
  429. func OpenaiKeyIn(vs ...string) predicate.CompapiAsynctask {
  430. return predicate.CompapiAsynctask(sql.FieldIn(FieldOpenaiKey, vs...))
  431. }
  432. // OpenaiKeyNotIn applies the NotIn predicate on the "openai_key" field.
  433. func OpenaiKeyNotIn(vs ...string) predicate.CompapiAsynctask {
  434. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldOpenaiKey, vs...))
  435. }
  436. // OpenaiKeyGT applies the GT predicate on the "openai_key" field.
  437. func OpenaiKeyGT(v string) predicate.CompapiAsynctask {
  438. return predicate.CompapiAsynctask(sql.FieldGT(FieldOpenaiKey, v))
  439. }
  440. // OpenaiKeyGTE applies the GTE predicate on the "openai_key" field.
  441. func OpenaiKeyGTE(v string) predicate.CompapiAsynctask {
  442. return predicate.CompapiAsynctask(sql.FieldGTE(FieldOpenaiKey, v))
  443. }
  444. // OpenaiKeyLT applies the LT predicate on the "openai_key" field.
  445. func OpenaiKeyLT(v string) predicate.CompapiAsynctask {
  446. return predicate.CompapiAsynctask(sql.FieldLT(FieldOpenaiKey, v))
  447. }
  448. // OpenaiKeyLTE applies the LTE predicate on the "openai_key" field.
  449. func OpenaiKeyLTE(v string) predicate.CompapiAsynctask {
  450. return predicate.CompapiAsynctask(sql.FieldLTE(FieldOpenaiKey, v))
  451. }
  452. // OpenaiKeyContains applies the Contains predicate on the "openai_key" field.
  453. func OpenaiKeyContains(v string) predicate.CompapiAsynctask {
  454. return predicate.CompapiAsynctask(sql.FieldContains(FieldOpenaiKey, v))
  455. }
  456. // OpenaiKeyHasPrefix applies the HasPrefix predicate on the "openai_key" field.
  457. func OpenaiKeyHasPrefix(v string) predicate.CompapiAsynctask {
  458. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldOpenaiKey, v))
  459. }
  460. // OpenaiKeyHasSuffix applies the HasSuffix predicate on the "openai_key" field.
  461. func OpenaiKeyHasSuffix(v string) predicate.CompapiAsynctask {
  462. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldOpenaiKey, v))
  463. }
  464. // OpenaiKeyEqualFold applies the EqualFold predicate on the "openai_key" field.
  465. func OpenaiKeyEqualFold(v string) predicate.CompapiAsynctask {
  466. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldOpenaiKey, v))
  467. }
  468. // OpenaiKeyContainsFold applies the ContainsFold predicate on the "openai_key" field.
  469. func OpenaiKeyContainsFold(v string) predicate.CompapiAsynctask {
  470. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldOpenaiKey, v))
  471. }
  472. // RequestRawEQ applies the EQ predicate on the "request_raw" field.
  473. func RequestRawEQ(v string) predicate.CompapiAsynctask {
  474. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRequestRaw, v))
  475. }
  476. // RequestRawNEQ applies the NEQ predicate on the "request_raw" field.
  477. func RequestRawNEQ(v string) predicate.CompapiAsynctask {
  478. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldRequestRaw, v))
  479. }
  480. // RequestRawIn applies the In predicate on the "request_raw" field.
  481. func RequestRawIn(vs ...string) predicate.CompapiAsynctask {
  482. return predicate.CompapiAsynctask(sql.FieldIn(FieldRequestRaw, vs...))
  483. }
  484. // RequestRawNotIn applies the NotIn predicate on the "request_raw" field.
  485. func RequestRawNotIn(vs ...string) predicate.CompapiAsynctask {
  486. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldRequestRaw, vs...))
  487. }
  488. // RequestRawGT applies the GT predicate on the "request_raw" field.
  489. func RequestRawGT(v string) predicate.CompapiAsynctask {
  490. return predicate.CompapiAsynctask(sql.FieldGT(FieldRequestRaw, v))
  491. }
  492. // RequestRawGTE applies the GTE predicate on the "request_raw" field.
  493. func RequestRawGTE(v string) predicate.CompapiAsynctask {
  494. return predicate.CompapiAsynctask(sql.FieldGTE(FieldRequestRaw, v))
  495. }
  496. // RequestRawLT applies the LT predicate on the "request_raw" field.
  497. func RequestRawLT(v string) predicate.CompapiAsynctask {
  498. return predicate.CompapiAsynctask(sql.FieldLT(FieldRequestRaw, v))
  499. }
  500. // RequestRawLTE applies the LTE predicate on the "request_raw" field.
  501. func RequestRawLTE(v string) predicate.CompapiAsynctask {
  502. return predicate.CompapiAsynctask(sql.FieldLTE(FieldRequestRaw, v))
  503. }
  504. // RequestRawContains applies the Contains predicate on the "request_raw" field.
  505. func RequestRawContains(v string) predicate.CompapiAsynctask {
  506. return predicate.CompapiAsynctask(sql.FieldContains(FieldRequestRaw, v))
  507. }
  508. // RequestRawHasPrefix applies the HasPrefix predicate on the "request_raw" field.
  509. func RequestRawHasPrefix(v string) predicate.CompapiAsynctask {
  510. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldRequestRaw, v))
  511. }
  512. // RequestRawHasSuffix applies the HasSuffix predicate on the "request_raw" field.
  513. func RequestRawHasSuffix(v string) predicate.CompapiAsynctask {
  514. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldRequestRaw, v))
  515. }
  516. // RequestRawEqualFold applies the EqualFold predicate on the "request_raw" field.
  517. func RequestRawEqualFold(v string) predicate.CompapiAsynctask {
  518. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldRequestRaw, v))
  519. }
  520. // RequestRawContainsFold applies the ContainsFold predicate on the "request_raw" field.
  521. func RequestRawContainsFold(v string) predicate.CompapiAsynctask {
  522. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldRequestRaw, v))
  523. }
  524. // ResponseRawEQ applies the EQ predicate on the "response_raw" field.
  525. func ResponseRawEQ(v string) predicate.CompapiAsynctask {
  526. return predicate.CompapiAsynctask(sql.FieldEQ(FieldResponseRaw, v))
  527. }
  528. // ResponseRawNEQ applies the NEQ predicate on the "response_raw" field.
  529. func ResponseRawNEQ(v string) predicate.CompapiAsynctask {
  530. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldResponseRaw, v))
  531. }
  532. // ResponseRawIn applies the In predicate on the "response_raw" field.
  533. func ResponseRawIn(vs ...string) predicate.CompapiAsynctask {
  534. return predicate.CompapiAsynctask(sql.FieldIn(FieldResponseRaw, vs...))
  535. }
  536. // ResponseRawNotIn applies the NotIn predicate on the "response_raw" field.
  537. func ResponseRawNotIn(vs ...string) predicate.CompapiAsynctask {
  538. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldResponseRaw, vs...))
  539. }
  540. // ResponseRawGT applies the GT predicate on the "response_raw" field.
  541. func ResponseRawGT(v string) predicate.CompapiAsynctask {
  542. return predicate.CompapiAsynctask(sql.FieldGT(FieldResponseRaw, v))
  543. }
  544. // ResponseRawGTE applies the GTE predicate on the "response_raw" field.
  545. func ResponseRawGTE(v string) predicate.CompapiAsynctask {
  546. return predicate.CompapiAsynctask(sql.FieldGTE(FieldResponseRaw, v))
  547. }
  548. // ResponseRawLT applies the LT predicate on the "response_raw" field.
  549. func ResponseRawLT(v string) predicate.CompapiAsynctask {
  550. return predicate.CompapiAsynctask(sql.FieldLT(FieldResponseRaw, v))
  551. }
  552. // ResponseRawLTE applies the LTE predicate on the "response_raw" field.
  553. func ResponseRawLTE(v string) predicate.CompapiAsynctask {
  554. return predicate.CompapiAsynctask(sql.FieldLTE(FieldResponseRaw, v))
  555. }
  556. // ResponseRawContains applies the Contains predicate on the "response_raw" field.
  557. func ResponseRawContains(v string) predicate.CompapiAsynctask {
  558. return predicate.CompapiAsynctask(sql.FieldContains(FieldResponseRaw, v))
  559. }
  560. // ResponseRawHasPrefix applies the HasPrefix predicate on the "response_raw" field.
  561. func ResponseRawHasPrefix(v string) predicate.CompapiAsynctask {
  562. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldResponseRaw, v))
  563. }
  564. // ResponseRawHasSuffix applies the HasSuffix predicate on the "response_raw" field.
  565. func ResponseRawHasSuffix(v string) predicate.CompapiAsynctask {
  566. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldResponseRaw, v))
  567. }
  568. // ResponseRawIsNil applies the IsNil predicate on the "response_raw" field.
  569. func ResponseRawIsNil() predicate.CompapiAsynctask {
  570. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldResponseRaw))
  571. }
  572. // ResponseRawNotNil applies the NotNil predicate on the "response_raw" field.
  573. func ResponseRawNotNil() predicate.CompapiAsynctask {
  574. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldResponseRaw))
  575. }
  576. // ResponseRawEqualFold applies the EqualFold predicate on the "response_raw" field.
  577. func ResponseRawEqualFold(v string) predicate.CompapiAsynctask {
  578. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldResponseRaw, v))
  579. }
  580. // ResponseRawContainsFold applies the ContainsFold predicate on the "response_raw" field.
  581. func ResponseRawContainsFold(v string) predicate.CompapiAsynctask {
  582. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldResponseRaw, v))
  583. }
  584. // CallbackURLEQ applies the EQ predicate on the "callback_url" field.
  585. func CallbackURLEQ(v string) predicate.CompapiAsynctask {
  586. return predicate.CompapiAsynctask(sql.FieldEQ(FieldCallbackURL, v))
  587. }
  588. // CallbackURLNEQ applies the NEQ predicate on the "callback_url" field.
  589. func CallbackURLNEQ(v string) predicate.CompapiAsynctask {
  590. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldCallbackURL, v))
  591. }
  592. // CallbackURLIn applies the In predicate on the "callback_url" field.
  593. func CallbackURLIn(vs ...string) predicate.CompapiAsynctask {
  594. return predicate.CompapiAsynctask(sql.FieldIn(FieldCallbackURL, vs...))
  595. }
  596. // CallbackURLNotIn applies the NotIn predicate on the "callback_url" field.
  597. func CallbackURLNotIn(vs ...string) predicate.CompapiAsynctask {
  598. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldCallbackURL, vs...))
  599. }
  600. // CallbackURLGT applies the GT predicate on the "callback_url" field.
  601. func CallbackURLGT(v string) predicate.CompapiAsynctask {
  602. return predicate.CompapiAsynctask(sql.FieldGT(FieldCallbackURL, v))
  603. }
  604. // CallbackURLGTE applies the GTE predicate on the "callback_url" field.
  605. func CallbackURLGTE(v string) predicate.CompapiAsynctask {
  606. return predicate.CompapiAsynctask(sql.FieldGTE(FieldCallbackURL, v))
  607. }
  608. // CallbackURLLT applies the LT predicate on the "callback_url" field.
  609. func CallbackURLLT(v string) predicate.CompapiAsynctask {
  610. return predicate.CompapiAsynctask(sql.FieldLT(FieldCallbackURL, v))
  611. }
  612. // CallbackURLLTE applies the LTE predicate on the "callback_url" field.
  613. func CallbackURLLTE(v string) predicate.CompapiAsynctask {
  614. return predicate.CompapiAsynctask(sql.FieldLTE(FieldCallbackURL, v))
  615. }
  616. // CallbackURLContains applies the Contains predicate on the "callback_url" field.
  617. func CallbackURLContains(v string) predicate.CompapiAsynctask {
  618. return predicate.CompapiAsynctask(sql.FieldContains(FieldCallbackURL, v))
  619. }
  620. // CallbackURLHasPrefix applies the HasPrefix predicate on the "callback_url" field.
  621. func CallbackURLHasPrefix(v string) predicate.CompapiAsynctask {
  622. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldCallbackURL, v))
  623. }
  624. // CallbackURLHasSuffix applies the HasSuffix predicate on the "callback_url" field.
  625. func CallbackURLHasSuffix(v string) predicate.CompapiAsynctask {
  626. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldCallbackURL, v))
  627. }
  628. // CallbackURLEqualFold applies the EqualFold predicate on the "callback_url" field.
  629. func CallbackURLEqualFold(v string) predicate.CompapiAsynctask {
  630. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldCallbackURL, v))
  631. }
  632. // CallbackURLContainsFold applies the ContainsFold predicate on the "callback_url" field.
  633. func CallbackURLContainsFold(v string) predicate.CompapiAsynctask {
  634. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldCallbackURL, v))
  635. }
  636. // TaskStatusEQ applies the EQ predicate on the "task_status" field.
  637. func TaskStatusEQ(v int8) predicate.CompapiAsynctask {
  638. return predicate.CompapiAsynctask(sql.FieldEQ(FieldTaskStatus, v))
  639. }
  640. // TaskStatusNEQ applies the NEQ predicate on the "task_status" field.
  641. func TaskStatusNEQ(v int8) predicate.CompapiAsynctask {
  642. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldTaskStatus, v))
  643. }
  644. // TaskStatusIn applies the In predicate on the "task_status" field.
  645. func TaskStatusIn(vs ...int8) predicate.CompapiAsynctask {
  646. return predicate.CompapiAsynctask(sql.FieldIn(FieldTaskStatus, vs...))
  647. }
  648. // TaskStatusNotIn applies the NotIn predicate on the "task_status" field.
  649. func TaskStatusNotIn(vs ...int8) predicate.CompapiAsynctask {
  650. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldTaskStatus, vs...))
  651. }
  652. // TaskStatusGT applies the GT predicate on the "task_status" field.
  653. func TaskStatusGT(v int8) predicate.CompapiAsynctask {
  654. return predicate.CompapiAsynctask(sql.FieldGT(FieldTaskStatus, v))
  655. }
  656. // TaskStatusGTE applies the GTE predicate on the "task_status" field.
  657. func TaskStatusGTE(v int8) predicate.CompapiAsynctask {
  658. return predicate.CompapiAsynctask(sql.FieldGTE(FieldTaskStatus, v))
  659. }
  660. // TaskStatusLT applies the LT predicate on the "task_status" field.
  661. func TaskStatusLT(v int8) predicate.CompapiAsynctask {
  662. return predicate.CompapiAsynctask(sql.FieldLT(FieldTaskStatus, v))
  663. }
  664. // TaskStatusLTE applies the LTE predicate on the "task_status" field.
  665. func TaskStatusLTE(v int8) predicate.CompapiAsynctask {
  666. return predicate.CompapiAsynctask(sql.FieldLTE(FieldTaskStatus, v))
  667. }
  668. // TaskStatusIsNil applies the IsNil predicate on the "task_status" field.
  669. func TaskStatusIsNil() predicate.CompapiAsynctask {
  670. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldTaskStatus))
  671. }
  672. // TaskStatusNotNil applies the NotNil predicate on the "task_status" field.
  673. func TaskStatusNotNil() predicate.CompapiAsynctask {
  674. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldTaskStatus))
  675. }
  676. // RetryCountEQ applies the EQ predicate on the "retry_count" field.
  677. func RetryCountEQ(v int8) predicate.CompapiAsynctask {
  678. return predicate.CompapiAsynctask(sql.FieldEQ(FieldRetryCount, v))
  679. }
  680. // RetryCountNEQ applies the NEQ predicate on the "retry_count" field.
  681. func RetryCountNEQ(v int8) predicate.CompapiAsynctask {
  682. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldRetryCount, v))
  683. }
  684. // RetryCountIn applies the In predicate on the "retry_count" field.
  685. func RetryCountIn(vs ...int8) predicate.CompapiAsynctask {
  686. return predicate.CompapiAsynctask(sql.FieldIn(FieldRetryCount, vs...))
  687. }
  688. // RetryCountNotIn applies the NotIn predicate on the "retry_count" field.
  689. func RetryCountNotIn(vs ...int8) predicate.CompapiAsynctask {
  690. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldRetryCount, vs...))
  691. }
  692. // RetryCountGT applies the GT predicate on the "retry_count" field.
  693. func RetryCountGT(v int8) predicate.CompapiAsynctask {
  694. return predicate.CompapiAsynctask(sql.FieldGT(FieldRetryCount, v))
  695. }
  696. // RetryCountGTE applies the GTE predicate on the "retry_count" field.
  697. func RetryCountGTE(v int8) predicate.CompapiAsynctask {
  698. return predicate.CompapiAsynctask(sql.FieldGTE(FieldRetryCount, v))
  699. }
  700. // RetryCountLT applies the LT predicate on the "retry_count" field.
  701. func RetryCountLT(v int8) predicate.CompapiAsynctask {
  702. return predicate.CompapiAsynctask(sql.FieldLT(FieldRetryCount, v))
  703. }
  704. // RetryCountLTE applies the LTE predicate on the "retry_count" field.
  705. func RetryCountLTE(v int8) predicate.CompapiAsynctask {
  706. return predicate.CompapiAsynctask(sql.FieldLTE(FieldRetryCount, v))
  707. }
  708. // RetryCountIsNil applies the IsNil predicate on the "retry_count" field.
  709. func RetryCountIsNil() predicate.CompapiAsynctask {
  710. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldRetryCount))
  711. }
  712. // RetryCountNotNil applies the NotNil predicate on the "retry_count" field.
  713. func RetryCountNotNil() predicate.CompapiAsynctask {
  714. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldRetryCount))
  715. }
  716. // LastErrorEQ applies the EQ predicate on the "last_error" field.
  717. func LastErrorEQ(v string) predicate.CompapiAsynctask {
  718. return predicate.CompapiAsynctask(sql.FieldEQ(FieldLastError, v))
  719. }
  720. // LastErrorNEQ applies the NEQ predicate on the "last_error" field.
  721. func LastErrorNEQ(v string) predicate.CompapiAsynctask {
  722. return predicate.CompapiAsynctask(sql.FieldNEQ(FieldLastError, v))
  723. }
  724. // LastErrorIn applies the In predicate on the "last_error" field.
  725. func LastErrorIn(vs ...string) predicate.CompapiAsynctask {
  726. return predicate.CompapiAsynctask(sql.FieldIn(FieldLastError, vs...))
  727. }
  728. // LastErrorNotIn applies the NotIn predicate on the "last_error" field.
  729. func LastErrorNotIn(vs ...string) predicate.CompapiAsynctask {
  730. return predicate.CompapiAsynctask(sql.FieldNotIn(FieldLastError, vs...))
  731. }
  732. // LastErrorGT applies the GT predicate on the "last_error" field.
  733. func LastErrorGT(v string) predicate.CompapiAsynctask {
  734. return predicate.CompapiAsynctask(sql.FieldGT(FieldLastError, v))
  735. }
  736. // LastErrorGTE applies the GTE predicate on the "last_error" field.
  737. func LastErrorGTE(v string) predicate.CompapiAsynctask {
  738. return predicate.CompapiAsynctask(sql.FieldGTE(FieldLastError, v))
  739. }
  740. // LastErrorLT applies the LT predicate on the "last_error" field.
  741. func LastErrorLT(v string) predicate.CompapiAsynctask {
  742. return predicate.CompapiAsynctask(sql.FieldLT(FieldLastError, v))
  743. }
  744. // LastErrorLTE applies the LTE predicate on the "last_error" field.
  745. func LastErrorLTE(v string) predicate.CompapiAsynctask {
  746. return predicate.CompapiAsynctask(sql.FieldLTE(FieldLastError, v))
  747. }
  748. // LastErrorContains applies the Contains predicate on the "last_error" field.
  749. func LastErrorContains(v string) predicate.CompapiAsynctask {
  750. return predicate.CompapiAsynctask(sql.FieldContains(FieldLastError, v))
  751. }
  752. // LastErrorHasPrefix applies the HasPrefix predicate on the "last_error" field.
  753. func LastErrorHasPrefix(v string) predicate.CompapiAsynctask {
  754. return predicate.CompapiAsynctask(sql.FieldHasPrefix(FieldLastError, v))
  755. }
  756. // LastErrorHasSuffix applies the HasSuffix predicate on the "last_error" field.
  757. func LastErrorHasSuffix(v string) predicate.CompapiAsynctask {
  758. return predicate.CompapiAsynctask(sql.FieldHasSuffix(FieldLastError, v))
  759. }
  760. // LastErrorIsNil applies the IsNil predicate on the "last_error" field.
  761. func LastErrorIsNil() predicate.CompapiAsynctask {
  762. return predicate.CompapiAsynctask(sql.FieldIsNull(FieldLastError))
  763. }
  764. // LastErrorNotNil applies the NotNil predicate on the "last_error" field.
  765. func LastErrorNotNil() predicate.CompapiAsynctask {
  766. return predicate.CompapiAsynctask(sql.FieldNotNull(FieldLastError))
  767. }
  768. // LastErrorEqualFold applies the EqualFold predicate on the "last_error" field.
  769. func LastErrorEqualFold(v string) predicate.CompapiAsynctask {
  770. return predicate.CompapiAsynctask(sql.FieldEqualFold(FieldLastError, v))
  771. }
  772. // LastErrorContainsFold applies the ContainsFold predicate on the "last_error" field.
  773. func LastErrorContainsFold(v string) predicate.CompapiAsynctask {
  774. return predicate.CompapiAsynctask(sql.FieldContainsFold(FieldLastError, v))
  775. }
  776. // And groups predicates with the AND operator between them.
  777. func And(predicates ...predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  778. return predicate.CompapiAsynctask(sql.AndPredicates(predicates...))
  779. }
  780. // Or groups predicates with the OR operator between them.
  781. func Or(predicates ...predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  782. return predicate.CompapiAsynctask(sql.OrPredicates(predicates...))
  783. }
  784. // Not applies the not operator on the given predicate.
  785. func Not(p predicate.CompapiAsynctask) predicate.CompapiAsynctask {
  786. return predicate.CompapiAsynctask(sql.NotPredicates(p))
  787. }