btree_gist.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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 funcsBtreeGist = []*catalog.Function{
  8. {
  9. Name: "cash_dist",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "money"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "money"},
  16. },
  17. },
  18. ReturnType: &ast.TypeName{Name: "money"},
  19. },
  20. {
  21. Name: "date_dist",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "date"},
  25. },
  26. {
  27. Type: &ast.TypeName{Name: "date"},
  28. },
  29. },
  30. ReturnType: &ast.TypeName{Name: "integer"},
  31. },
  32. {
  33. Name: "float4_dist",
  34. Args: []*catalog.Argument{
  35. {
  36. Type: &ast.TypeName{Name: "real"},
  37. },
  38. {
  39. Type: &ast.TypeName{Name: "real"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "real"},
  43. },
  44. {
  45. Name: "float8_dist",
  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: "double precision"},
  55. },
  56. {
  57. Name: "gbtreekey16_in",
  58. Args: []*catalog.Argument{
  59. {
  60. Type: &ast.TypeName{Name: "cstring"},
  61. },
  62. },
  63. ReturnType: &ast.TypeName{Name: "gbtreekey16"},
  64. },
  65. {
  66. Name: "gbtreekey16_out",
  67. Args: []*catalog.Argument{
  68. {
  69. Type: &ast.TypeName{Name: "gbtreekey16"},
  70. },
  71. },
  72. ReturnType: &ast.TypeName{Name: "cstring"},
  73. },
  74. {
  75. Name: "gbtreekey2_in",
  76. Args: []*catalog.Argument{
  77. {
  78. Type: &ast.TypeName{Name: "cstring"},
  79. },
  80. },
  81. ReturnType: &ast.TypeName{Name: "gbtreekey2"},
  82. },
  83. {
  84. Name: "gbtreekey2_out",
  85. Args: []*catalog.Argument{
  86. {
  87. Type: &ast.TypeName{Name: "gbtreekey2"},
  88. },
  89. },
  90. ReturnType: &ast.TypeName{Name: "cstring"},
  91. },
  92. {
  93. Name: "gbtreekey32_in",
  94. Args: []*catalog.Argument{
  95. {
  96. Type: &ast.TypeName{Name: "cstring"},
  97. },
  98. },
  99. ReturnType: &ast.TypeName{Name: "gbtreekey32"},
  100. },
  101. {
  102. Name: "gbtreekey32_out",
  103. Args: []*catalog.Argument{
  104. {
  105. Type: &ast.TypeName{Name: "gbtreekey32"},
  106. },
  107. },
  108. ReturnType: &ast.TypeName{Name: "cstring"},
  109. },
  110. {
  111. Name: "gbtreekey4_in",
  112. Args: []*catalog.Argument{
  113. {
  114. Type: &ast.TypeName{Name: "cstring"},
  115. },
  116. },
  117. ReturnType: &ast.TypeName{Name: "gbtreekey4"},
  118. },
  119. {
  120. Name: "gbtreekey4_out",
  121. Args: []*catalog.Argument{
  122. {
  123. Type: &ast.TypeName{Name: "gbtreekey4"},
  124. },
  125. },
  126. ReturnType: &ast.TypeName{Name: "cstring"},
  127. },
  128. {
  129. Name: "gbtreekey8_in",
  130. Args: []*catalog.Argument{
  131. {
  132. Type: &ast.TypeName{Name: "cstring"},
  133. },
  134. },
  135. ReturnType: &ast.TypeName{Name: "gbtreekey8"},
  136. },
  137. {
  138. Name: "gbtreekey8_out",
  139. Args: []*catalog.Argument{
  140. {
  141. Type: &ast.TypeName{Name: "gbtreekey8"},
  142. },
  143. },
  144. ReturnType: &ast.TypeName{Name: "cstring"},
  145. },
  146. {
  147. Name: "gbtreekey_var_in",
  148. Args: []*catalog.Argument{
  149. {
  150. Type: &ast.TypeName{Name: "cstring"},
  151. },
  152. },
  153. ReturnType: &ast.TypeName{Name: "gbtreekey_var"},
  154. },
  155. {
  156. Name: "gbtreekey_var_out",
  157. Args: []*catalog.Argument{
  158. {
  159. Type: &ast.TypeName{Name: "gbtreekey_var"},
  160. },
  161. },
  162. ReturnType: &ast.TypeName{Name: "cstring"},
  163. },
  164. {
  165. Name: "int2_dist",
  166. Args: []*catalog.Argument{
  167. {
  168. Type: &ast.TypeName{Name: "smallint"},
  169. },
  170. {
  171. Type: &ast.TypeName{Name: "smallint"},
  172. },
  173. },
  174. ReturnType: &ast.TypeName{Name: "smallint"},
  175. },
  176. {
  177. Name: "int4_dist",
  178. Args: []*catalog.Argument{
  179. {
  180. Type: &ast.TypeName{Name: "integer"},
  181. },
  182. {
  183. Type: &ast.TypeName{Name: "integer"},
  184. },
  185. },
  186. ReturnType: &ast.TypeName{Name: "integer"},
  187. },
  188. {
  189. Name: "int8_dist",
  190. Args: []*catalog.Argument{
  191. {
  192. Type: &ast.TypeName{Name: "bigint"},
  193. },
  194. {
  195. Type: &ast.TypeName{Name: "bigint"},
  196. },
  197. },
  198. ReturnType: &ast.TypeName{Name: "bigint"},
  199. },
  200. {
  201. Name: "interval_dist",
  202. Args: []*catalog.Argument{
  203. {
  204. Type: &ast.TypeName{Name: "interval"},
  205. },
  206. {
  207. Type: &ast.TypeName{Name: "interval"},
  208. },
  209. },
  210. ReturnType: &ast.TypeName{Name: "interval"},
  211. },
  212. {
  213. Name: "oid_dist",
  214. Args: []*catalog.Argument{
  215. {
  216. Type: &ast.TypeName{Name: "oid"},
  217. },
  218. {
  219. Type: &ast.TypeName{Name: "oid"},
  220. },
  221. },
  222. ReturnType: &ast.TypeName{Name: "oid"},
  223. },
  224. {
  225. Name: "time_dist",
  226. Args: []*catalog.Argument{
  227. {
  228. Type: &ast.TypeName{Name: "time without time zone"},
  229. },
  230. {
  231. Type: &ast.TypeName{Name: "time without time zone"},
  232. },
  233. },
  234. ReturnType: &ast.TypeName{Name: "interval"},
  235. },
  236. {
  237. Name: "ts_dist",
  238. Args: []*catalog.Argument{
  239. {
  240. Type: &ast.TypeName{Name: "timestamp without time zone"},
  241. },
  242. {
  243. Type: &ast.TypeName{Name: "timestamp without time zone"},
  244. },
  245. },
  246. ReturnType: &ast.TypeName{Name: "interval"},
  247. },
  248. {
  249. Name: "tstz_dist",
  250. Args: []*catalog.Argument{
  251. {
  252. Type: &ast.TypeName{Name: "timestamp with time zone"},
  253. },
  254. {
  255. Type: &ast.TypeName{Name: "timestamp with time zone"},
  256. },
  257. },
  258. ReturnType: &ast.TypeName{Name: "interval"},
  259. },
  260. }
  261. func BtreeGist() *catalog.Schema {
  262. s := &catalog.Schema{Name: "pg_catalog"}
  263. s.Funcs = funcsBtreeGist
  264. return s
  265. }