intarray.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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 funcsIntarray = []*catalog.Function{
  8. {
  9. Name: "_int_contained",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "integer[]"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "integer[]"},
  16. },
  17. },
  18. ReturnType: &ast.TypeName{Name: "boolean"},
  19. },
  20. {
  21. Name: "_int_contains",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "integer[]"},
  25. },
  26. {
  27. Type: &ast.TypeName{Name: "integer[]"},
  28. },
  29. },
  30. ReturnType: &ast.TypeName{Name: "boolean"},
  31. },
  32. {
  33. Name: "_int_different",
  34. Args: []*catalog.Argument{
  35. {
  36. Type: &ast.TypeName{Name: "integer[]"},
  37. },
  38. {
  39. Type: &ast.TypeName{Name: "integer[]"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "boolean"},
  43. },
  44. {
  45. Name: "_int_inter",
  46. Args: []*catalog.Argument{
  47. {
  48. Type: &ast.TypeName{Name: "integer[]"},
  49. },
  50. {
  51. Type: &ast.TypeName{Name: "integer[]"},
  52. },
  53. },
  54. ReturnType: &ast.TypeName{Name: "integer[]"},
  55. },
  56. {
  57. Name: "_int_overlap",
  58. Args: []*catalog.Argument{
  59. {
  60. Type: &ast.TypeName{Name: "integer[]"},
  61. },
  62. {
  63. Type: &ast.TypeName{Name: "integer[]"},
  64. },
  65. },
  66. ReturnType: &ast.TypeName{Name: "boolean"},
  67. },
  68. {
  69. Name: "_int_same",
  70. Args: []*catalog.Argument{
  71. {
  72. Type: &ast.TypeName{Name: "integer[]"},
  73. },
  74. {
  75. Type: &ast.TypeName{Name: "integer[]"},
  76. },
  77. },
  78. ReturnType: &ast.TypeName{Name: "boolean"},
  79. },
  80. {
  81. Name: "_int_union",
  82. Args: []*catalog.Argument{
  83. {
  84. Type: &ast.TypeName{Name: "integer[]"},
  85. },
  86. {
  87. Type: &ast.TypeName{Name: "integer[]"},
  88. },
  89. },
  90. ReturnType: &ast.TypeName{Name: "integer[]"},
  91. },
  92. {
  93. Name: "_intbig_in",
  94. Args: []*catalog.Argument{
  95. {
  96. Type: &ast.TypeName{Name: "cstring"},
  97. },
  98. },
  99. ReturnType: &ast.TypeName{Name: "intbig_gkey"},
  100. },
  101. {
  102. Name: "_intbig_out",
  103. Args: []*catalog.Argument{
  104. {
  105. Type: &ast.TypeName{Name: "intbig_gkey"},
  106. },
  107. },
  108. ReturnType: &ast.TypeName{Name: "cstring"},
  109. },
  110. {
  111. Name: "boolop",
  112. Args: []*catalog.Argument{
  113. {
  114. Type: &ast.TypeName{Name: "integer[]"},
  115. },
  116. {
  117. Type: &ast.TypeName{Name: "query_int"},
  118. },
  119. },
  120. ReturnType: &ast.TypeName{Name: "boolean"},
  121. },
  122. {
  123. Name: "bqarr_in",
  124. Args: []*catalog.Argument{
  125. {
  126. Type: &ast.TypeName{Name: "cstring"},
  127. },
  128. },
  129. ReturnType: &ast.TypeName{Name: "query_int"},
  130. },
  131. {
  132. Name: "bqarr_out",
  133. Args: []*catalog.Argument{
  134. {
  135. Type: &ast.TypeName{Name: "query_int"},
  136. },
  137. },
  138. ReturnType: &ast.TypeName{Name: "cstring"},
  139. },
  140. {
  141. Name: "icount",
  142. Args: []*catalog.Argument{
  143. {
  144. Type: &ast.TypeName{Name: "integer[]"},
  145. },
  146. },
  147. ReturnType: &ast.TypeName{Name: "integer"},
  148. },
  149. {
  150. Name: "idx",
  151. Args: []*catalog.Argument{
  152. {
  153. Type: &ast.TypeName{Name: "integer[]"},
  154. },
  155. {
  156. Type: &ast.TypeName{Name: "integer"},
  157. },
  158. },
  159. ReturnType: &ast.TypeName{Name: "integer"},
  160. },
  161. {
  162. Name: "intarray_del_elem",
  163. Args: []*catalog.Argument{
  164. {
  165. Type: &ast.TypeName{Name: "integer[]"},
  166. },
  167. {
  168. Type: &ast.TypeName{Name: "integer"},
  169. },
  170. },
  171. ReturnType: &ast.TypeName{Name: "integer[]"},
  172. },
  173. {
  174. Name: "intarray_push_array",
  175. Args: []*catalog.Argument{
  176. {
  177. Type: &ast.TypeName{Name: "integer[]"},
  178. },
  179. {
  180. Type: &ast.TypeName{Name: "integer[]"},
  181. },
  182. },
  183. ReturnType: &ast.TypeName{Name: "integer[]"},
  184. },
  185. {
  186. Name: "intarray_push_elem",
  187. Args: []*catalog.Argument{
  188. {
  189. Type: &ast.TypeName{Name: "integer[]"},
  190. },
  191. {
  192. Type: &ast.TypeName{Name: "integer"},
  193. },
  194. },
  195. ReturnType: &ast.TypeName{Name: "integer[]"},
  196. },
  197. {
  198. Name: "intset",
  199. Args: []*catalog.Argument{
  200. {
  201. Type: &ast.TypeName{Name: "integer"},
  202. },
  203. },
  204. ReturnType: &ast.TypeName{Name: "integer[]"},
  205. },
  206. {
  207. Name: "intset_subtract",
  208. Args: []*catalog.Argument{
  209. {
  210. Type: &ast.TypeName{Name: "integer[]"},
  211. },
  212. {
  213. Type: &ast.TypeName{Name: "integer[]"},
  214. },
  215. },
  216. ReturnType: &ast.TypeName{Name: "integer[]"},
  217. },
  218. {
  219. Name: "intset_union_elem",
  220. Args: []*catalog.Argument{
  221. {
  222. Type: &ast.TypeName{Name: "integer[]"},
  223. },
  224. {
  225. Type: &ast.TypeName{Name: "integer"},
  226. },
  227. },
  228. ReturnType: &ast.TypeName{Name: "integer[]"},
  229. },
  230. {
  231. Name: "querytree",
  232. Args: []*catalog.Argument{
  233. {
  234. Type: &ast.TypeName{Name: "query_int"},
  235. },
  236. },
  237. ReturnType: &ast.TypeName{Name: "text"},
  238. },
  239. {
  240. Name: "rboolop",
  241. Args: []*catalog.Argument{
  242. {
  243. Type: &ast.TypeName{Name: "query_int"},
  244. },
  245. {
  246. Type: &ast.TypeName{Name: "integer[]"},
  247. },
  248. },
  249. ReturnType: &ast.TypeName{Name: "boolean"},
  250. },
  251. {
  252. Name: "sort",
  253. Args: []*catalog.Argument{
  254. {
  255. Type: &ast.TypeName{Name: "integer[]"},
  256. },
  257. },
  258. ReturnType: &ast.TypeName{Name: "integer[]"},
  259. },
  260. {
  261. Name: "sort",
  262. Args: []*catalog.Argument{
  263. {
  264. Type: &ast.TypeName{Name: "integer[]"},
  265. },
  266. {
  267. Type: &ast.TypeName{Name: "text"},
  268. },
  269. },
  270. ReturnType: &ast.TypeName{Name: "integer[]"},
  271. },
  272. {
  273. Name: "sort_asc",
  274. Args: []*catalog.Argument{
  275. {
  276. Type: &ast.TypeName{Name: "integer[]"},
  277. },
  278. },
  279. ReturnType: &ast.TypeName{Name: "integer[]"},
  280. },
  281. {
  282. Name: "sort_desc",
  283. Args: []*catalog.Argument{
  284. {
  285. Type: &ast.TypeName{Name: "integer[]"},
  286. },
  287. },
  288. ReturnType: &ast.TypeName{Name: "integer[]"},
  289. },
  290. {
  291. Name: "subarray",
  292. Args: []*catalog.Argument{
  293. {
  294. Type: &ast.TypeName{Name: "integer[]"},
  295. },
  296. {
  297. Type: &ast.TypeName{Name: "integer"},
  298. },
  299. },
  300. ReturnType: &ast.TypeName{Name: "integer[]"},
  301. },
  302. {
  303. Name: "subarray",
  304. Args: []*catalog.Argument{
  305. {
  306. Type: &ast.TypeName{Name: "integer[]"},
  307. },
  308. {
  309. Type: &ast.TypeName{Name: "integer"},
  310. },
  311. {
  312. Type: &ast.TypeName{Name: "integer"},
  313. },
  314. },
  315. ReturnType: &ast.TypeName{Name: "integer[]"},
  316. },
  317. {
  318. Name: "uniq",
  319. Args: []*catalog.Argument{
  320. {
  321. Type: &ast.TypeName{Name: "integer[]"},
  322. },
  323. },
  324. ReturnType: &ast.TypeName{Name: "integer[]"},
  325. },
  326. }
  327. func Intarray() *catalog.Schema {
  328. s := &catalog.Schema{Name: "pg_catalog"}
  329. s.Funcs = funcsIntarray
  330. return s
  331. }