citext.go 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. // Code generated by sqlc-pg-gen. DO NOT EDIT.
  2. package contrib
  3. import (
  4. "github.com/sqlc-dev/sqlc/internal/sql/ast"
  5. "github.com/sqlc-dev/sqlc/internal/sql/catalog"
  6. )
  7. var funcsCitext = []*catalog.Function{
  8. {
  9. Name: "citext",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "boolean"},
  13. },
  14. },
  15. ReturnType: &ast.TypeName{Name: "citext"},
  16. },
  17. {
  18. Name: "citext",
  19. Args: []*catalog.Argument{
  20. {
  21. Type: &ast.TypeName{Name: "character"},
  22. },
  23. },
  24. ReturnType: &ast.TypeName{Name: "citext"},
  25. },
  26. {
  27. Name: "citext",
  28. Args: []*catalog.Argument{
  29. {
  30. Type: &ast.TypeName{Name: "inet"},
  31. },
  32. },
  33. ReturnType: &ast.TypeName{Name: "citext"},
  34. },
  35. {
  36. Name: "citext_cmp",
  37. Args: []*catalog.Argument{
  38. {
  39. Type: &ast.TypeName{Name: "citext"},
  40. },
  41. {
  42. Type: &ast.TypeName{Name: "citext"},
  43. },
  44. },
  45. ReturnType: &ast.TypeName{Name: "integer"},
  46. },
  47. {
  48. Name: "citext_eq",
  49. Args: []*catalog.Argument{
  50. {
  51. Type: &ast.TypeName{Name: "citext"},
  52. },
  53. {
  54. Type: &ast.TypeName{Name: "citext"},
  55. },
  56. },
  57. ReturnType: &ast.TypeName{Name: "boolean"},
  58. },
  59. {
  60. Name: "citext_ge",
  61. Args: []*catalog.Argument{
  62. {
  63. Type: &ast.TypeName{Name: "citext"},
  64. },
  65. {
  66. Type: &ast.TypeName{Name: "citext"},
  67. },
  68. },
  69. ReturnType: &ast.TypeName{Name: "boolean"},
  70. },
  71. {
  72. Name: "citext_gt",
  73. Args: []*catalog.Argument{
  74. {
  75. Type: &ast.TypeName{Name: "citext"},
  76. },
  77. {
  78. Type: &ast.TypeName{Name: "citext"},
  79. },
  80. },
  81. ReturnType: &ast.TypeName{Name: "boolean"},
  82. },
  83. {
  84. Name: "citext_hash",
  85. Args: []*catalog.Argument{
  86. {
  87. Type: &ast.TypeName{Name: "citext"},
  88. },
  89. },
  90. ReturnType: &ast.TypeName{Name: "integer"},
  91. },
  92. {
  93. Name: "citext_hash_extended",
  94. Args: []*catalog.Argument{
  95. {
  96. Type: &ast.TypeName{Name: "citext"},
  97. },
  98. {
  99. Type: &ast.TypeName{Name: "bigint"},
  100. },
  101. },
  102. ReturnType: &ast.TypeName{Name: "bigint"},
  103. },
  104. {
  105. Name: "citext_larger",
  106. Args: []*catalog.Argument{
  107. {
  108. Type: &ast.TypeName{Name: "citext"},
  109. },
  110. {
  111. Type: &ast.TypeName{Name: "citext"},
  112. },
  113. },
  114. ReturnType: &ast.TypeName{Name: "citext"},
  115. },
  116. {
  117. Name: "citext_le",
  118. Args: []*catalog.Argument{
  119. {
  120. Type: &ast.TypeName{Name: "citext"},
  121. },
  122. {
  123. Type: &ast.TypeName{Name: "citext"},
  124. },
  125. },
  126. ReturnType: &ast.TypeName{Name: "boolean"},
  127. },
  128. {
  129. Name: "citext_lt",
  130. Args: []*catalog.Argument{
  131. {
  132. Type: &ast.TypeName{Name: "citext"},
  133. },
  134. {
  135. Type: &ast.TypeName{Name: "citext"},
  136. },
  137. },
  138. ReturnType: &ast.TypeName{Name: "boolean"},
  139. },
  140. {
  141. Name: "citext_ne",
  142. Args: []*catalog.Argument{
  143. {
  144. Type: &ast.TypeName{Name: "citext"},
  145. },
  146. {
  147. Type: &ast.TypeName{Name: "citext"},
  148. },
  149. },
  150. ReturnType: &ast.TypeName{Name: "boolean"},
  151. },
  152. {
  153. Name: "citext_pattern_cmp",
  154. Args: []*catalog.Argument{
  155. {
  156. Type: &ast.TypeName{Name: "citext"},
  157. },
  158. {
  159. Type: &ast.TypeName{Name: "citext"},
  160. },
  161. },
  162. ReturnType: &ast.TypeName{Name: "integer"},
  163. },
  164. {
  165. Name: "citext_pattern_ge",
  166. Args: []*catalog.Argument{
  167. {
  168. Type: &ast.TypeName{Name: "citext"},
  169. },
  170. {
  171. Type: &ast.TypeName{Name: "citext"},
  172. },
  173. },
  174. ReturnType: &ast.TypeName{Name: "boolean"},
  175. },
  176. {
  177. Name: "citext_pattern_gt",
  178. Args: []*catalog.Argument{
  179. {
  180. Type: &ast.TypeName{Name: "citext"},
  181. },
  182. {
  183. Type: &ast.TypeName{Name: "citext"},
  184. },
  185. },
  186. ReturnType: &ast.TypeName{Name: "boolean"},
  187. },
  188. {
  189. Name: "citext_pattern_le",
  190. Args: []*catalog.Argument{
  191. {
  192. Type: &ast.TypeName{Name: "citext"},
  193. },
  194. {
  195. Type: &ast.TypeName{Name: "citext"},
  196. },
  197. },
  198. ReturnType: &ast.TypeName{Name: "boolean"},
  199. },
  200. {
  201. Name: "citext_pattern_lt",
  202. Args: []*catalog.Argument{
  203. {
  204. Type: &ast.TypeName{Name: "citext"},
  205. },
  206. {
  207. Type: &ast.TypeName{Name: "citext"},
  208. },
  209. },
  210. ReturnType: &ast.TypeName{Name: "boolean"},
  211. },
  212. {
  213. Name: "citext_smaller",
  214. Args: []*catalog.Argument{
  215. {
  216. Type: &ast.TypeName{Name: "citext"},
  217. },
  218. {
  219. Type: &ast.TypeName{Name: "citext"},
  220. },
  221. },
  222. ReturnType: &ast.TypeName{Name: "citext"},
  223. },
  224. {
  225. Name: "citextin",
  226. Args: []*catalog.Argument{
  227. {
  228. Type: &ast.TypeName{Name: "cstring"},
  229. },
  230. },
  231. ReturnType: &ast.TypeName{Name: "citext"},
  232. },
  233. {
  234. Name: "citextout",
  235. Args: []*catalog.Argument{
  236. {
  237. Type: &ast.TypeName{Name: "citext"},
  238. },
  239. },
  240. ReturnType: &ast.TypeName{Name: "cstring"},
  241. },
  242. {
  243. Name: "citextsend",
  244. Args: []*catalog.Argument{
  245. {
  246. Type: &ast.TypeName{Name: "citext"},
  247. },
  248. },
  249. ReturnType: &ast.TypeName{Name: "bytea"},
  250. },
  251. {
  252. Name: "max",
  253. Args: []*catalog.Argument{
  254. {
  255. Type: &ast.TypeName{Name: "citext"},
  256. },
  257. },
  258. ReturnType: &ast.TypeName{Name: "citext"},
  259. },
  260. {
  261. Name: "min",
  262. Args: []*catalog.Argument{
  263. {
  264. Type: &ast.TypeName{Name: "citext"},
  265. },
  266. },
  267. ReturnType: &ast.TypeName{Name: "citext"},
  268. },
  269. {
  270. Name: "regexp_match",
  271. Args: []*catalog.Argument{
  272. {
  273. Type: &ast.TypeName{Name: "citext"},
  274. },
  275. {
  276. Type: &ast.TypeName{Name: "citext"},
  277. },
  278. },
  279. ReturnType: &ast.TypeName{Name: "text[]"},
  280. },
  281. {
  282. Name: "regexp_match",
  283. Args: []*catalog.Argument{
  284. {
  285. Type: &ast.TypeName{Name: "citext"},
  286. },
  287. {
  288. Type: &ast.TypeName{Name: "citext"},
  289. },
  290. {
  291. Type: &ast.TypeName{Name: "text"},
  292. },
  293. },
  294. ReturnType: &ast.TypeName{Name: "text[]"},
  295. },
  296. {
  297. Name: "regexp_matches",
  298. Args: []*catalog.Argument{
  299. {
  300. Type: &ast.TypeName{Name: "citext"},
  301. },
  302. {
  303. Type: &ast.TypeName{Name: "citext"},
  304. },
  305. },
  306. ReturnType: &ast.TypeName{Name: "text[]"},
  307. },
  308. {
  309. Name: "regexp_matches",
  310. Args: []*catalog.Argument{
  311. {
  312. Type: &ast.TypeName{Name: "citext"},
  313. },
  314. {
  315. Type: &ast.TypeName{Name: "citext"},
  316. },
  317. {
  318. Type: &ast.TypeName{Name: "text"},
  319. },
  320. },
  321. ReturnType: &ast.TypeName{Name: "text[]"},
  322. },
  323. {
  324. Name: "regexp_replace",
  325. Args: []*catalog.Argument{
  326. {
  327. Type: &ast.TypeName{Name: "citext"},
  328. },
  329. {
  330. Type: &ast.TypeName{Name: "citext"},
  331. },
  332. {
  333. Type: &ast.TypeName{Name: "text"},
  334. },
  335. },
  336. ReturnType: &ast.TypeName{Name: "text"},
  337. },
  338. {
  339. Name: "regexp_replace",
  340. Args: []*catalog.Argument{
  341. {
  342. Type: &ast.TypeName{Name: "citext"},
  343. },
  344. {
  345. Type: &ast.TypeName{Name: "citext"},
  346. },
  347. {
  348. Type: &ast.TypeName{Name: "text"},
  349. },
  350. {
  351. Type: &ast.TypeName{Name: "text"},
  352. },
  353. },
  354. ReturnType: &ast.TypeName{Name: "text"},
  355. },
  356. {
  357. Name: "regexp_split_to_array",
  358. Args: []*catalog.Argument{
  359. {
  360. Type: &ast.TypeName{Name: "citext"},
  361. },
  362. {
  363. Type: &ast.TypeName{Name: "citext"},
  364. },
  365. },
  366. ReturnType: &ast.TypeName{Name: "text[]"},
  367. },
  368. {
  369. Name: "regexp_split_to_array",
  370. Args: []*catalog.Argument{
  371. {
  372. Type: &ast.TypeName{Name: "citext"},
  373. },
  374. {
  375. Type: &ast.TypeName{Name: "citext"},
  376. },
  377. {
  378. Type: &ast.TypeName{Name: "text"},
  379. },
  380. },
  381. ReturnType: &ast.TypeName{Name: "text[]"},
  382. },
  383. {
  384. Name: "regexp_split_to_table",
  385. Args: []*catalog.Argument{
  386. {
  387. Type: &ast.TypeName{Name: "citext"},
  388. },
  389. {
  390. Type: &ast.TypeName{Name: "citext"},
  391. },
  392. },
  393. ReturnType: &ast.TypeName{Name: "text"},
  394. },
  395. {
  396. Name: "regexp_split_to_table",
  397. Args: []*catalog.Argument{
  398. {
  399. Type: &ast.TypeName{Name: "citext"},
  400. },
  401. {
  402. Type: &ast.TypeName{Name: "citext"},
  403. },
  404. {
  405. Type: &ast.TypeName{Name: "text"},
  406. },
  407. },
  408. ReturnType: &ast.TypeName{Name: "text"},
  409. },
  410. {
  411. Name: "replace",
  412. Args: []*catalog.Argument{
  413. {
  414. Type: &ast.TypeName{Name: "citext"},
  415. },
  416. {
  417. Type: &ast.TypeName{Name: "citext"},
  418. },
  419. {
  420. Type: &ast.TypeName{Name: "citext"},
  421. },
  422. },
  423. ReturnType: &ast.TypeName{Name: "text"},
  424. },
  425. {
  426. Name: "split_part",
  427. Args: []*catalog.Argument{
  428. {
  429. Type: &ast.TypeName{Name: "citext"},
  430. },
  431. {
  432. Type: &ast.TypeName{Name: "citext"},
  433. },
  434. {
  435. Type: &ast.TypeName{Name: "integer"},
  436. },
  437. },
  438. ReturnType: &ast.TypeName{Name: "text"},
  439. },
  440. {
  441. Name: "strpos",
  442. Args: []*catalog.Argument{
  443. {
  444. Type: &ast.TypeName{Name: "citext"},
  445. },
  446. {
  447. Type: &ast.TypeName{Name: "citext"},
  448. },
  449. },
  450. ReturnType: &ast.TypeName{Name: "integer"},
  451. },
  452. {
  453. Name: "texticlike",
  454. Args: []*catalog.Argument{
  455. {
  456. Type: &ast.TypeName{Name: "citext"},
  457. },
  458. {
  459. Type: &ast.TypeName{Name: "citext"},
  460. },
  461. },
  462. ReturnType: &ast.TypeName{Name: "boolean"},
  463. },
  464. {
  465. Name: "texticlike",
  466. Args: []*catalog.Argument{
  467. {
  468. Type: &ast.TypeName{Name: "citext"},
  469. },
  470. {
  471. Type: &ast.TypeName{Name: "text"},
  472. },
  473. },
  474. ReturnType: &ast.TypeName{Name: "boolean"},
  475. },
  476. {
  477. Name: "texticnlike",
  478. Args: []*catalog.Argument{
  479. {
  480. Type: &ast.TypeName{Name: "citext"},
  481. },
  482. {
  483. Type: &ast.TypeName{Name: "citext"},
  484. },
  485. },
  486. ReturnType: &ast.TypeName{Name: "boolean"},
  487. },
  488. {
  489. Name: "texticnlike",
  490. Args: []*catalog.Argument{
  491. {
  492. Type: &ast.TypeName{Name: "citext"},
  493. },
  494. {
  495. Type: &ast.TypeName{Name: "text"},
  496. },
  497. },
  498. ReturnType: &ast.TypeName{Name: "boolean"},
  499. },
  500. {
  501. Name: "texticregexeq",
  502. Args: []*catalog.Argument{
  503. {
  504. Type: &ast.TypeName{Name: "citext"},
  505. },
  506. {
  507. Type: &ast.TypeName{Name: "citext"},
  508. },
  509. },
  510. ReturnType: &ast.TypeName{Name: "boolean"},
  511. },
  512. {
  513. Name: "texticregexeq",
  514. Args: []*catalog.Argument{
  515. {
  516. Type: &ast.TypeName{Name: "citext"},
  517. },
  518. {
  519. Type: &ast.TypeName{Name: "text"},
  520. },
  521. },
  522. ReturnType: &ast.TypeName{Name: "boolean"},
  523. },
  524. {
  525. Name: "texticregexne",
  526. Args: []*catalog.Argument{
  527. {
  528. Type: &ast.TypeName{Name: "citext"},
  529. },
  530. {
  531. Type: &ast.TypeName{Name: "citext"},
  532. },
  533. },
  534. ReturnType: &ast.TypeName{Name: "boolean"},
  535. },
  536. {
  537. Name: "texticregexne",
  538. Args: []*catalog.Argument{
  539. {
  540. Type: &ast.TypeName{Name: "citext"},
  541. },
  542. {
  543. Type: &ast.TypeName{Name: "text"},
  544. },
  545. },
  546. ReturnType: &ast.TypeName{Name: "boolean"},
  547. },
  548. {
  549. Name: "translate",
  550. Args: []*catalog.Argument{
  551. {
  552. Type: &ast.TypeName{Name: "citext"},
  553. },
  554. {
  555. Type: &ast.TypeName{Name: "citext"},
  556. },
  557. {
  558. Type: &ast.TypeName{Name: "text"},
  559. },
  560. },
  561. ReturnType: &ast.TypeName{Name: "text"},
  562. },
  563. }
  564. func Citext() *catalog.Schema {
  565. s := &catalog.Schema{Name: "pg_catalog"}
  566. s.Funcs = funcsCitext
  567. return s
  568. }