cube.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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 funcsCube = []*catalog.Function{
  8. {
  9. Name: "cube",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "cube"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "double precision"},
  16. },
  17. },
  18. ReturnType: &ast.TypeName{Name: "cube"},
  19. },
  20. {
  21. Name: "cube",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "cube"},
  25. },
  26. {
  27. Type: &ast.TypeName{Name: "double precision"},
  28. },
  29. {
  30. Type: &ast.TypeName{Name: "double precision"},
  31. },
  32. },
  33. ReturnType: &ast.TypeName{Name: "cube"},
  34. },
  35. {
  36. Name: "cube",
  37. Args: []*catalog.Argument{
  38. {
  39. Type: &ast.TypeName{Name: "double precision"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "cube"},
  43. },
  44. {
  45. Name: "cube",
  46. Args: []*catalog.Argument{
  47. {
  48. Type: &ast.TypeName{Name: "double precision"},
  49. },
  50. {
  51. Type: &ast.TypeName{Name: "double precision"},
  52. },
  53. },
  54. ReturnType: &ast.TypeName{Name: "cube"},
  55. },
  56. {
  57. Name: "cube",
  58. Args: []*catalog.Argument{
  59. {
  60. Type: &ast.TypeName{Name: "double precision[]"},
  61. },
  62. },
  63. ReturnType: &ast.TypeName{Name: "cube"},
  64. },
  65. {
  66. Name: "cube",
  67. Args: []*catalog.Argument{
  68. {
  69. Type: &ast.TypeName{Name: "double precision[]"},
  70. },
  71. {
  72. Type: &ast.TypeName{Name: "double precision[]"},
  73. },
  74. },
  75. ReturnType: &ast.TypeName{Name: "cube"},
  76. },
  77. {
  78. Name: "cube_cmp",
  79. Args: []*catalog.Argument{
  80. {
  81. Type: &ast.TypeName{Name: "cube"},
  82. },
  83. {
  84. Type: &ast.TypeName{Name: "cube"},
  85. },
  86. },
  87. ReturnType: &ast.TypeName{Name: "integer"},
  88. },
  89. {
  90. Name: "cube_contained",
  91. Args: []*catalog.Argument{
  92. {
  93. Type: &ast.TypeName{Name: "cube"},
  94. },
  95. {
  96. Type: &ast.TypeName{Name: "cube"},
  97. },
  98. },
  99. ReturnType: &ast.TypeName{Name: "boolean"},
  100. },
  101. {
  102. Name: "cube_contains",
  103. Args: []*catalog.Argument{
  104. {
  105. Type: &ast.TypeName{Name: "cube"},
  106. },
  107. {
  108. Type: &ast.TypeName{Name: "cube"},
  109. },
  110. },
  111. ReturnType: &ast.TypeName{Name: "boolean"},
  112. },
  113. {
  114. Name: "cube_coord",
  115. Args: []*catalog.Argument{
  116. {
  117. Type: &ast.TypeName{Name: "cube"},
  118. },
  119. {
  120. Type: &ast.TypeName{Name: "integer"},
  121. },
  122. },
  123. ReturnType: &ast.TypeName{Name: "double precision"},
  124. },
  125. {
  126. Name: "cube_coord_llur",
  127. Args: []*catalog.Argument{
  128. {
  129. Type: &ast.TypeName{Name: "cube"},
  130. },
  131. {
  132. Type: &ast.TypeName{Name: "integer"},
  133. },
  134. },
  135. ReturnType: &ast.TypeName{Name: "double precision"},
  136. },
  137. {
  138. Name: "cube_dim",
  139. Args: []*catalog.Argument{
  140. {
  141. Type: &ast.TypeName{Name: "cube"},
  142. },
  143. },
  144. ReturnType: &ast.TypeName{Name: "integer"},
  145. },
  146. {
  147. Name: "cube_distance",
  148. Args: []*catalog.Argument{
  149. {
  150. Type: &ast.TypeName{Name: "cube"},
  151. },
  152. {
  153. Type: &ast.TypeName{Name: "cube"},
  154. },
  155. },
  156. ReturnType: &ast.TypeName{Name: "double precision"},
  157. },
  158. {
  159. Name: "cube_enlarge",
  160. Args: []*catalog.Argument{
  161. {
  162. Type: &ast.TypeName{Name: "cube"},
  163. },
  164. {
  165. Type: &ast.TypeName{Name: "double precision"},
  166. },
  167. {
  168. Type: &ast.TypeName{Name: "integer"},
  169. },
  170. },
  171. ReturnType: &ast.TypeName{Name: "cube"},
  172. },
  173. {
  174. Name: "cube_eq",
  175. Args: []*catalog.Argument{
  176. {
  177. Type: &ast.TypeName{Name: "cube"},
  178. },
  179. {
  180. Type: &ast.TypeName{Name: "cube"},
  181. },
  182. },
  183. ReturnType: &ast.TypeName{Name: "boolean"},
  184. },
  185. {
  186. Name: "cube_ge",
  187. Args: []*catalog.Argument{
  188. {
  189. Type: &ast.TypeName{Name: "cube"},
  190. },
  191. {
  192. Type: &ast.TypeName{Name: "cube"},
  193. },
  194. },
  195. ReturnType: &ast.TypeName{Name: "boolean"},
  196. },
  197. {
  198. Name: "cube_gt",
  199. Args: []*catalog.Argument{
  200. {
  201. Type: &ast.TypeName{Name: "cube"},
  202. },
  203. {
  204. Type: &ast.TypeName{Name: "cube"},
  205. },
  206. },
  207. ReturnType: &ast.TypeName{Name: "boolean"},
  208. },
  209. {
  210. Name: "cube_in",
  211. Args: []*catalog.Argument{
  212. {
  213. Type: &ast.TypeName{Name: "cstring"},
  214. },
  215. },
  216. ReturnType: &ast.TypeName{Name: "cube"},
  217. },
  218. {
  219. Name: "cube_inter",
  220. Args: []*catalog.Argument{
  221. {
  222. Type: &ast.TypeName{Name: "cube"},
  223. },
  224. {
  225. Type: &ast.TypeName{Name: "cube"},
  226. },
  227. },
  228. ReturnType: &ast.TypeName{Name: "cube"},
  229. },
  230. {
  231. Name: "cube_is_point",
  232. Args: []*catalog.Argument{
  233. {
  234. Type: &ast.TypeName{Name: "cube"},
  235. },
  236. },
  237. ReturnType: &ast.TypeName{Name: "boolean"},
  238. },
  239. {
  240. Name: "cube_le",
  241. Args: []*catalog.Argument{
  242. {
  243. Type: &ast.TypeName{Name: "cube"},
  244. },
  245. {
  246. Type: &ast.TypeName{Name: "cube"},
  247. },
  248. },
  249. ReturnType: &ast.TypeName{Name: "boolean"},
  250. },
  251. {
  252. Name: "cube_ll_coord",
  253. Args: []*catalog.Argument{
  254. {
  255. Type: &ast.TypeName{Name: "cube"},
  256. },
  257. {
  258. Type: &ast.TypeName{Name: "integer"},
  259. },
  260. },
  261. ReturnType: &ast.TypeName{Name: "double precision"},
  262. },
  263. {
  264. Name: "cube_lt",
  265. Args: []*catalog.Argument{
  266. {
  267. Type: &ast.TypeName{Name: "cube"},
  268. },
  269. {
  270. Type: &ast.TypeName{Name: "cube"},
  271. },
  272. },
  273. ReturnType: &ast.TypeName{Name: "boolean"},
  274. },
  275. {
  276. Name: "cube_ne",
  277. Args: []*catalog.Argument{
  278. {
  279. Type: &ast.TypeName{Name: "cube"},
  280. },
  281. {
  282. Type: &ast.TypeName{Name: "cube"},
  283. },
  284. },
  285. ReturnType: &ast.TypeName{Name: "boolean"},
  286. },
  287. {
  288. Name: "cube_out",
  289. Args: []*catalog.Argument{
  290. {
  291. Type: &ast.TypeName{Name: "cube"},
  292. },
  293. },
  294. ReturnType: &ast.TypeName{Name: "cstring"},
  295. },
  296. {
  297. Name: "cube_overlap",
  298. Args: []*catalog.Argument{
  299. {
  300. Type: &ast.TypeName{Name: "cube"},
  301. },
  302. {
  303. Type: &ast.TypeName{Name: "cube"},
  304. },
  305. },
  306. ReturnType: &ast.TypeName{Name: "boolean"},
  307. },
  308. {
  309. Name: "cube_send",
  310. Args: []*catalog.Argument{
  311. {
  312. Type: &ast.TypeName{Name: "cube"},
  313. },
  314. },
  315. ReturnType: &ast.TypeName{Name: "bytea"},
  316. },
  317. {
  318. Name: "cube_size",
  319. Args: []*catalog.Argument{
  320. {
  321. Type: &ast.TypeName{Name: "cube"},
  322. },
  323. },
  324. ReturnType: &ast.TypeName{Name: "double precision"},
  325. },
  326. {
  327. Name: "cube_subset",
  328. Args: []*catalog.Argument{
  329. {
  330. Type: &ast.TypeName{Name: "cube"},
  331. },
  332. {
  333. Type: &ast.TypeName{Name: "integer[]"},
  334. },
  335. },
  336. ReturnType: &ast.TypeName{Name: "cube"},
  337. },
  338. {
  339. Name: "cube_union",
  340. Args: []*catalog.Argument{
  341. {
  342. Type: &ast.TypeName{Name: "cube"},
  343. },
  344. {
  345. Type: &ast.TypeName{Name: "cube"},
  346. },
  347. },
  348. ReturnType: &ast.TypeName{Name: "cube"},
  349. },
  350. {
  351. Name: "cube_ur_coord",
  352. Args: []*catalog.Argument{
  353. {
  354. Type: &ast.TypeName{Name: "cube"},
  355. },
  356. {
  357. Type: &ast.TypeName{Name: "integer"},
  358. },
  359. },
  360. ReturnType: &ast.TypeName{Name: "double precision"},
  361. },
  362. {
  363. Name: "distance_chebyshev",
  364. Args: []*catalog.Argument{
  365. {
  366. Type: &ast.TypeName{Name: "cube"},
  367. },
  368. {
  369. Type: &ast.TypeName{Name: "cube"},
  370. },
  371. },
  372. ReturnType: &ast.TypeName{Name: "double precision"},
  373. },
  374. {
  375. Name: "distance_taxicab",
  376. Args: []*catalog.Argument{
  377. {
  378. Type: &ast.TypeName{Name: "cube"},
  379. },
  380. {
  381. Type: &ast.TypeName{Name: "cube"},
  382. },
  383. },
  384. ReturnType: &ast.TypeName{Name: "double precision"},
  385. },
  386. }
  387. func Cube() *catalog.Schema {
  388. s := &catalog.Schema{Name: "pg_catalog"}
  389. s.Funcs = funcsCube
  390. return s
  391. }