where.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. // Code generated by ent, DO NOT EDIT.
  2. package errorpassthroughrule
  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.ErrorPassthroughRule {
  10. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id int64) predicate.ErrorPassthroughRule {
  14. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id int64) predicate.ErrorPassthroughRule {
  18. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...int64) predicate.ErrorPassthroughRule {
  22. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...int64) predicate.ErrorPassthroughRule {
  26. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id int64) predicate.ErrorPassthroughRule {
  30. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id int64) predicate.ErrorPassthroughRule {
  34. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id int64) predicate.ErrorPassthroughRule {
  38. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id int64) predicate.ErrorPassthroughRule {
  42. return predicate.ErrorPassthroughRule(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.ErrorPassthroughRule {
  46. return predicate.ErrorPassthroughRule(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.ErrorPassthroughRule {
  50. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  53. func Name(v string) predicate.ErrorPassthroughRule {
  54. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldName, v))
  55. }
  56. // Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
  57. func Enabled(v bool) predicate.ErrorPassthroughRule {
  58. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldEnabled, v))
  59. }
  60. // Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
  61. func Priority(v int) predicate.ErrorPassthroughRule {
  62. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPriority, v))
  63. }
  64. // MatchMode applies equality check predicate on the "match_mode" field. It's identical to MatchModeEQ.
  65. func MatchMode(v string) predicate.ErrorPassthroughRule {
  66. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldMatchMode, v))
  67. }
  68. // PassthroughCode applies equality check predicate on the "passthrough_code" field. It's identical to PassthroughCodeEQ.
  69. func PassthroughCode(v bool) predicate.ErrorPassthroughRule {
  70. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughCode, v))
  71. }
  72. // ResponseCode applies equality check predicate on the "response_code" field. It's identical to ResponseCodeEQ.
  73. func ResponseCode(v int) predicate.ErrorPassthroughRule {
  74. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldResponseCode, v))
  75. }
  76. // PassthroughBody applies equality check predicate on the "passthrough_body" field. It's identical to PassthroughBodyEQ.
  77. func PassthroughBody(v bool) predicate.ErrorPassthroughRule {
  78. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughBody, v))
  79. }
  80. // CustomMessage applies equality check predicate on the "custom_message" field. It's identical to CustomMessageEQ.
  81. func CustomMessage(v string) predicate.ErrorPassthroughRule {
  82. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCustomMessage, v))
  83. }
  84. // SkipMonitoring applies equality check predicate on the "skip_monitoring" field. It's identical to SkipMonitoringEQ.
  85. func SkipMonitoring(v bool) predicate.ErrorPassthroughRule {
  86. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldSkipMonitoring, v))
  87. }
  88. // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
  89. func Description(v string) predicate.ErrorPassthroughRule {
  90. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldDescription, v))
  91. }
  92. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  93. func CreatedAtEQ(v time.Time) predicate.ErrorPassthroughRule {
  94. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCreatedAt, v))
  95. }
  96. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  97. func CreatedAtNEQ(v time.Time) predicate.ErrorPassthroughRule {
  98. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldCreatedAt, v))
  99. }
  100. // CreatedAtIn applies the In predicate on the "created_at" field.
  101. func CreatedAtIn(vs ...time.Time) predicate.ErrorPassthroughRule {
  102. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldCreatedAt, vs...))
  103. }
  104. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  105. func CreatedAtNotIn(vs ...time.Time) predicate.ErrorPassthroughRule {
  106. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldCreatedAt, vs...))
  107. }
  108. // CreatedAtGT applies the GT predicate on the "created_at" field.
  109. func CreatedAtGT(v time.Time) predicate.ErrorPassthroughRule {
  110. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldCreatedAt, v))
  111. }
  112. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  113. func CreatedAtGTE(v time.Time) predicate.ErrorPassthroughRule {
  114. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldCreatedAt, v))
  115. }
  116. // CreatedAtLT applies the LT predicate on the "created_at" field.
  117. func CreatedAtLT(v time.Time) predicate.ErrorPassthroughRule {
  118. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldCreatedAt, v))
  119. }
  120. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  121. func CreatedAtLTE(v time.Time) predicate.ErrorPassthroughRule {
  122. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldCreatedAt, v))
  123. }
  124. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  125. func UpdatedAtEQ(v time.Time) predicate.ErrorPassthroughRule {
  126. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  129. func UpdatedAtNEQ(v time.Time) predicate.ErrorPassthroughRule {
  130. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  133. func UpdatedAtIn(vs ...time.Time) predicate.ErrorPassthroughRule {
  134. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldUpdatedAt, vs...))
  135. }
  136. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  137. func UpdatedAtNotIn(vs ...time.Time) predicate.ErrorPassthroughRule {
  138. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldUpdatedAt, vs...))
  139. }
  140. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  141. func UpdatedAtGT(v time.Time) predicate.ErrorPassthroughRule {
  142. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  145. func UpdatedAtGTE(v time.Time) predicate.ErrorPassthroughRule {
  146. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  149. func UpdatedAtLT(v time.Time) predicate.ErrorPassthroughRule {
  150. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  153. func UpdatedAtLTE(v time.Time) predicate.ErrorPassthroughRule {
  154. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldUpdatedAt, v))
  155. }
  156. // NameEQ applies the EQ predicate on the "name" field.
  157. func NameEQ(v string) predicate.ErrorPassthroughRule {
  158. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldName, v))
  159. }
  160. // NameNEQ applies the NEQ predicate on the "name" field.
  161. func NameNEQ(v string) predicate.ErrorPassthroughRule {
  162. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldName, v))
  163. }
  164. // NameIn applies the In predicate on the "name" field.
  165. func NameIn(vs ...string) predicate.ErrorPassthroughRule {
  166. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldName, vs...))
  167. }
  168. // NameNotIn applies the NotIn predicate on the "name" field.
  169. func NameNotIn(vs ...string) predicate.ErrorPassthroughRule {
  170. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldName, vs...))
  171. }
  172. // NameGT applies the GT predicate on the "name" field.
  173. func NameGT(v string) predicate.ErrorPassthroughRule {
  174. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldName, v))
  175. }
  176. // NameGTE applies the GTE predicate on the "name" field.
  177. func NameGTE(v string) predicate.ErrorPassthroughRule {
  178. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldName, v))
  179. }
  180. // NameLT applies the LT predicate on the "name" field.
  181. func NameLT(v string) predicate.ErrorPassthroughRule {
  182. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldName, v))
  183. }
  184. // NameLTE applies the LTE predicate on the "name" field.
  185. func NameLTE(v string) predicate.ErrorPassthroughRule {
  186. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldName, v))
  187. }
  188. // NameContains applies the Contains predicate on the "name" field.
  189. func NameContains(v string) predicate.ErrorPassthroughRule {
  190. return predicate.ErrorPassthroughRule(sql.FieldContains(FieldName, v))
  191. }
  192. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  193. func NameHasPrefix(v string) predicate.ErrorPassthroughRule {
  194. return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldName, v))
  195. }
  196. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  197. func NameHasSuffix(v string) predicate.ErrorPassthroughRule {
  198. return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldName, v))
  199. }
  200. // NameEqualFold applies the EqualFold predicate on the "name" field.
  201. func NameEqualFold(v string) predicate.ErrorPassthroughRule {
  202. return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldName, v))
  203. }
  204. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  205. func NameContainsFold(v string) predicate.ErrorPassthroughRule {
  206. return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldName, v))
  207. }
  208. // EnabledEQ applies the EQ predicate on the "enabled" field.
  209. func EnabledEQ(v bool) predicate.ErrorPassthroughRule {
  210. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldEnabled, v))
  211. }
  212. // EnabledNEQ applies the NEQ predicate on the "enabled" field.
  213. func EnabledNEQ(v bool) predicate.ErrorPassthroughRule {
  214. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldEnabled, v))
  215. }
  216. // PriorityEQ applies the EQ predicate on the "priority" field.
  217. func PriorityEQ(v int) predicate.ErrorPassthroughRule {
  218. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPriority, v))
  219. }
  220. // PriorityNEQ applies the NEQ predicate on the "priority" field.
  221. func PriorityNEQ(v int) predicate.ErrorPassthroughRule {
  222. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPriority, v))
  223. }
  224. // PriorityIn applies the In predicate on the "priority" field.
  225. func PriorityIn(vs ...int) predicate.ErrorPassthroughRule {
  226. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldPriority, vs...))
  227. }
  228. // PriorityNotIn applies the NotIn predicate on the "priority" field.
  229. func PriorityNotIn(vs ...int) predicate.ErrorPassthroughRule {
  230. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldPriority, vs...))
  231. }
  232. // PriorityGT applies the GT predicate on the "priority" field.
  233. func PriorityGT(v int) predicate.ErrorPassthroughRule {
  234. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldPriority, v))
  235. }
  236. // PriorityGTE applies the GTE predicate on the "priority" field.
  237. func PriorityGTE(v int) predicate.ErrorPassthroughRule {
  238. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldPriority, v))
  239. }
  240. // PriorityLT applies the LT predicate on the "priority" field.
  241. func PriorityLT(v int) predicate.ErrorPassthroughRule {
  242. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldPriority, v))
  243. }
  244. // PriorityLTE applies the LTE predicate on the "priority" field.
  245. func PriorityLTE(v int) predicate.ErrorPassthroughRule {
  246. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldPriority, v))
  247. }
  248. // ErrorCodesIsNil applies the IsNil predicate on the "error_codes" field.
  249. func ErrorCodesIsNil() predicate.ErrorPassthroughRule {
  250. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldErrorCodes))
  251. }
  252. // ErrorCodesNotNil applies the NotNil predicate on the "error_codes" field.
  253. func ErrorCodesNotNil() predicate.ErrorPassthroughRule {
  254. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldErrorCodes))
  255. }
  256. // KeywordsIsNil applies the IsNil predicate on the "keywords" field.
  257. func KeywordsIsNil() predicate.ErrorPassthroughRule {
  258. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldKeywords))
  259. }
  260. // KeywordsNotNil applies the NotNil predicate on the "keywords" field.
  261. func KeywordsNotNil() predicate.ErrorPassthroughRule {
  262. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldKeywords))
  263. }
  264. // MatchModeEQ applies the EQ predicate on the "match_mode" field.
  265. func MatchModeEQ(v string) predicate.ErrorPassthroughRule {
  266. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldMatchMode, v))
  267. }
  268. // MatchModeNEQ applies the NEQ predicate on the "match_mode" field.
  269. func MatchModeNEQ(v string) predicate.ErrorPassthroughRule {
  270. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldMatchMode, v))
  271. }
  272. // MatchModeIn applies the In predicate on the "match_mode" field.
  273. func MatchModeIn(vs ...string) predicate.ErrorPassthroughRule {
  274. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldMatchMode, vs...))
  275. }
  276. // MatchModeNotIn applies the NotIn predicate on the "match_mode" field.
  277. func MatchModeNotIn(vs ...string) predicate.ErrorPassthroughRule {
  278. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldMatchMode, vs...))
  279. }
  280. // MatchModeGT applies the GT predicate on the "match_mode" field.
  281. func MatchModeGT(v string) predicate.ErrorPassthroughRule {
  282. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldMatchMode, v))
  283. }
  284. // MatchModeGTE applies the GTE predicate on the "match_mode" field.
  285. func MatchModeGTE(v string) predicate.ErrorPassthroughRule {
  286. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldMatchMode, v))
  287. }
  288. // MatchModeLT applies the LT predicate on the "match_mode" field.
  289. func MatchModeLT(v string) predicate.ErrorPassthroughRule {
  290. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldMatchMode, v))
  291. }
  292. // MatchModeLTE applies the LTE predicate on the "match_mode" field.
  293. func MatchModeLTE(v string) predicate.ErrorPassthroughRule {
  294. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldMatchMode, v))
  295. }
  296. // MatchModeContains applies the Contains predicate on the "match_mode" field.
  297. func MatchModeContains(v string) predicate.ErrorPassthroughRule {
  298. return predicate.ErrorPassthroughRule(sql.FieldContains(FieldMatchMode, v))
  299. }
  300. // MatchModeHasPrefix applies the HasPrefix predicate on the "match_mode" field.
  301. func MatchModeHasPrefix(v string) predicate.ErrorPassthroughRule {
  302. return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldMatchMode, v))
  303. }
  304. // MatchModeHasSuffix applies the HasSuffix predicate on the "match_mode" field.
  305. func MatchModeHasSuffix(v string) predicate.ErrorPassthroughRule {
  306. return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldMatchMode, v))
  307. }
  308. // MatchModeEqualFold applies the EqualFold predicate on the "match_mode" field.
  309. func MatchModeEqualFold(v string) predicate.ErrorPassthroughRule {
  310. return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldMatchMode, v))
  311. }
  312. // MatchModeContainsFold applies the ContainsFold predicate on the "match_mode" field.
  313. func MatchModeContainsFold(v string) predicate.ErrorPassthroughRule {
  314. return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldMatchMode, v))
  315. }
  316. // PlatformsIsNil applies the IsNil predicate on the "platforms" field.
  317. func PlatformsIsNil() predicate.ErrorPassthroughRule {
  318. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldPlatforms))
  319. }
  320. // PlatformsNotNil applies the NotNil predicate on the "platforms" field.
  321. func PlatformsNotNil() predicate.ErrorPassthroughRule {
  322. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldPlatforms))
  323. }
  324. // PassthroughCodeEQ applies the EQ predicate on the "passthrough_code" field.
  325. func PassthroughCodeEQ(v bool) predicate.ErrorPassthroughRule {
  326. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughCode, v))
  327. }
  328. // PassthroughCodeNEQ applies the NEQ predicate on the "passthrough_code" field.
  329. func PassthroughCodeNEQ(v bool) predicate.ErrorPassthroughRule {
  330. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPassthroughCode, v))
  331. }
  332. // ResponseCodeEQ applies the EQ predicate on the "response_code" field.
  333. func ResponseCodeEQ(v int) predicate.ErrorPassthroughRule {
  334. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldResponseCode, v))
  335. }
  336. // ResponseCodeNEQ applies the NEQ predicate on the "response_code" field.
  337. func ResponseCodeNEQ(v int) predicate.ErrorPassthroughRule {
  338. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldResponseCode, v))
  339. }
  340. // ResponseCodeIn applies the In predicate on the "response_code" field.
  341. func ResponseCodeIn(vs ...int) predicate.ErrorPassthroughRule {
  342. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldResponseCode, vs...))
  343. }
  344. // ResponseCodeNotIn applies the NotIn predicate on the "response_code" field.
  345. func ResponseCodeNotIn(vs ...int) predicate.ErrorPassthroughRule {
  346. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldResponseCode, vs...))
  347. }
  348. // ResponseCodeGT applies the GT predicate on the "response_code" field.
  349. func ResponseCodeGT(v int) predicate.ErrorPassthroughRule {
  350. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldResponseCode, v))
  351. }
  352. // ResponseCodeGTE applies the GTE predicate on the "response_code" field.
  353. func ResponseCodeGTE(v int) predicate.ErrorPassthroughRule {
  354. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldResponseCode, v))
  355. }
  356. // ResponseCodeLT applies the LT predicate on the "response_code" field.
  357. func ResponseCodeLT(v int) predicate.ErrorPassthroughRule {
  358. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldResponseCode, v))
  359. }
  360. // ResponseCodeLTE applies the LTE predicate on the "response_code" field.
  361. func ResponseCodeLTE(v int) predicate.ErrorPassthroughRule {
  362. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldResponseCode, v))
  363. }
  364. // ResponseCodeIsNil applies the IsNil predicate on the "response_code" field.
  365. func ResponseCodeIsNil() predicate.ErrorPassthroughRule {
  366. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldResponseCode))
  367. }
  368. // ResponseCodeNotNil applies the NotNil predicate on the "response_code" field.
  369. func ResponseCodeNotNil() predicate.ErrorPassthroughRule {
  370. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldResponseCode))
  371. }
  372. // PassthroughBodyEQ applies the EQ predicate on the "passthrough_body" field.
  373. func PassthroughBodyEQ(v bool) predicate.ErrorPassthroughRule {
  374. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldPassthroughBody, v))
  375. }
  376. // PassthroughBodyNEQ applies the NEQ predicate on the "passthrough_body" field.
  377. func PassthroughBodyNEQ(v bool) predicate.ErrorPassthroughRule {
  378. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldPassthroughBody, v))
  379. }
  380. // CustomMessageEQ applies the EQ predicate on the "custom_message" field.
  381. func CustomMessageEQ(v string) predicate.ErrorPassthroughRule {
  382. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldCustomMessage, v))
  383. }
  384. // CustomMessageNEQ applies the NEQ predicate on the "custom_message" field.
  385. func CustomMessageNEQ(v string) predicate.ErrorPassthroughRule {
  386. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldCustomMessage, v))
  387. }
  388. // CustomMessageIn applies the In predicate on the "custom_message" field.
  389. func CustomMessageIn(vs ...string) predicate.ErrorPassthroughRule {
  390. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldCustomMessage, vs...))
  391. }
  392. // CustomMessageNotIn applies the NotIn predicate on the "custom_message" field.
  393. func CustomMessageNotIn(vs ...string) predicate.ErrorPassthroughRule {
  394. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldCustomMessage, vs...))
  395. }
  396. // CustomMessageGT applies the GT predicate on the "custom_message" field.
  397. func CustomMessageGT(v string) predicate.ErrorPassthroughRule {
  398. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldCustomMessage, v))
  399. }
  400. // CustomMessageGTE applies the GTE predicate on the "custom_message" field.
  401. func CustomMessageGTE(v string) predicate.ErrorPassthroughRule {
  402. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldCustomMessage, v))
  403. }
  404. // CustomMessageLT applies the LT predicate on the "custom_message" field.
  405. func CustomMessageLT(v string) predicate.ErrorPassthroughRule {
  406. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldCustomMessage, v))
  407. }
  408. // CustomMessageLTE applies the LTE predicate on the "custom_message" field.
  409. func CustomMessageLTE(v string) predicate.ErrorPassthroughRule {
  410. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldCustomMessage, v))
  411. }
  412. // CustomMessageContains applies the Contains predicate on the "custom_message" field.
  413. func CustomMessageContains(v string) predicate.ErrorPassthroughRule {
  414. return predicate.ErrorPassthroughRule(sql.FieldContains(FieldCustomMessage, v))
  415. }
  416. // CustomMessageHasPrefix applies the HasPrefix predicate on the "custom_message" field.
  417. func CustomMessageHasPrefix(v string) predicate.ErrorPassthroughRule {
  418. return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldCustomMessage, v))
  419. }
  420. // CustomMessageHasSuffix applies the HasSuffix predicate on the "custom_message" field.
  421. func CustomMessageHasSuffix(v string) predicate.ErrorPassthroughRule {
  422. return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldCustomMessage, v))
  423. }
  424. // CustomMessageIsNil applies the IsNil predicate on the "custom_message" field.
  425. func CustomMessageIsNil() predicate.ErrorPassthroughRule {
  426. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldCustomMessage))
  427. }
  428. // CustomMessageNotNil applies the NotNil predicate on the "custom_message" field.
  429. func CustomMessageNotNil() predicate.ErrorPassthroughRule {
  430. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldCustomMessage))
  431. }
  432. // CustomMessageEqualFold applies the EqualFold predicate on the "custom_message" field.
  433. func CustomMessageEqualFold(v string) predicate.ErrorPassthroughRule {
  434. return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldCustomMessage, v))
  435. }
  436. // CustomMessageContainsFold applies the ContainsFold predicate on the "custom_message" field.
  437. func CustomMessageContainsFold(v string) predicate.ErrorPassthroughRule {
  438. return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldCustomMessage, v))
  439. }
  440. // SkipMonitoringEQ applies the EQ predicate on the "skip_monitoring" field.
  441. func SkipMonitoringEQ(v bool) predicate.ErrorPassthroughRule {
  442. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldSkipMonitoring, v))
  443. }
  444. // SkipMonitoringNEQ applies the NEQ predicate on the "skip_monitoring" field.
  445. func SkipMonitoringNEQ(v bool) predicate.ErrorPassthroughRule {
  446. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldSkipMonitoring, v))
  447. }
  448. // DescriptionEQ applies the EQ predicate on the "description" field.
  449. func DescriptionEQ(v string) predicate.ErrorPassthroughRule {
  450. return predicate.ErrorPassthroughRule(sql.FieldEQ(FieldDescription, v))
  451. }
  452. // DescriptionNEQ applies the NEQ predicate on the "description" field.
  453. func DescriptionNEQ(v string) predicate.ErrorPassthroughRule {
  454. return predicate.ErrorPassthroughRule(sql.FieldNEQ(FieldDescription, v))
  455. }
  456. // DescriptionIn applies the In predicate on the "description" field.
  457. func DescriptionIn(vs ...string) predicate.ErrorPassthroughRule {
  458. return predicate.ErrorPassthroughRule(sql.FieldIn(FieldDescription, vs...))
  459. }
  460. // DescriptionNotIn applies the NotIn predicate on the "description" field.
  461. func DescriptionNotIn(vs ...string) predicate.ErrorPassthroughRule {
  462. return predicate.ErrorPassthroughRule(sql.FieldNotIn(FieldDescription, vs...))
  463. }
  464. // DescriptionGT applies the GT predicate on the "description" field.
  465. func DescriptionGT(v string) predicate.ErrorPassthroughRule {
  466. return predicate.ErrorPassthroughRule(sql.FieldGT(FieldDescription, v))
  467. }
  468. // DescriptionGTE applies the GTE predicate on the "description" field.
  469. func DescriptionGTE(v string) predicate.ErrorPassthroughRule {
  470. return predicate.ErrorPassthroughRule(sql.FieldGTE(FieldDescription, v))
  471. }
  472. // DescriptionLT applies the LT predicate on the "description" field.
  473. func DescriptionLT(v string) predicate.ErrorPassthroughRule {
  474. return predicate.ErrorPassthroughRule(sql.FieldLT(FieldDescription, v))
  475. }
  476. // DescriptionLTE applies the LTE predicate on the "description" field.
  477. func DescriptionLTE(v string) predicate.ErrorPassthroughRule {
  478. return predicate.ErrorPassthroughRule(sql.FieldLTE(FieldDescription, v))
  479. }
  480. // DescriptionContains applies the Contains predicate on the "description" field.
  481. func DescriptionContains(v string) predicate.ErrorPassthroughRule {
  482. return predicate.ErrorPassthroughRule(sql.FieldContains(FieldDescription, v))
  483. }
  484. // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
  485. func DescriptionHasPrefix(v string) predicate.ErrorPassthroughRule {
  486. return predicate.ErrorPassthroughRule(sql.FieldHasPrefix(FieldDescription, v))
  487. }
  488. // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
  489. func DescriptionHasSuffix(v string) predicate.ErrorPassthroughRule {
  490. return predicate.ErrorPassthroughRule(sql.FieldHasSuffix(FieldDescription, v))
  491. }
  492. // DescriptionIsNil applies the IsNil predicate on the "description" field.
  493. func DescriptionIsNil() predicate.ErrorPassthroughRule {
  494. return predicate.ErrorPassthroughRule(sql.FieldIsNull(FieldDescription))
  495. }
  496. // DescriptionNotNil applies the NotNil predicate on the "description" field.
  497. func DescriptionNotNil() predicate.ErrorPassthroughRule {
  498. return predicate.ErrorPassthroughRule(sql.FieldNotNull(FieldDescription))
  499. }
  500. // DescriptionEqualFold applies the EqualFold predicate on the "description" field.
  501. func DescriptionEqualFold(v string) predicate.ErrorPassthroughRule {
  502. return predicate.ErrorPassthroughRule(sql.FieldEqualFold(FieldDescription, v))
  503. }
  504. // DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
  505. func DescriptionContainsFold(v string) predicate.ErrorPassthroughRule {
  506. return predicate.ErrorPassthroughRule(sql.FieldContainsFold(FieldDescription, v))
  507. }
  508. // And groups predicates with the AND operator between them.
  509. func And(predicates ...predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule {
  510. return predicate.ErrorPassthroughRule(sql.AndPredicates(predicates...))
  511. }
  512. // Or groups predicates with the OR operator between them.
  513. func Or(predicates ...predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule {
  514. return predicate.ErrorPassthroughRule(sql.OrPredicates(predicates...))
  515. }
  516. // Not applies the not operator on the given predicate.
  517. func Not(p predicate.ErrorPassthroughRule) predicate.ErrorPassthroughRule {
  518. return predicate.ErrorPassthroughRule(sql.NotPredicates(p))
  519. }