tablefunc.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 funcsTablefunc = []*catalog.Function{
  8. {
  9. Name: "connectby",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "text"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "text"},
  16. },
  17. {
  18. Type: &ast.TypeName{Name: "text"},
  19. },
  20. {
  21. Type: &ast.TypeName{Name: "text"},
  22. },
  23. {
  24. Type: &ast.TypeName{Name: "integer"},
  25. },
  26. },
  27. ReturnType: &ast.TypeName{Name: "record"},
  28. },
  29. {
  30. Name: "connectby",
  31. Args: []*catalog.Argument{
  32. {
  33. Type: &ast.TypeName{Name: "text"},
  34. },
  35. {
  36. Type: &ast.TypeName{Name: "text"},
  37. },
  38. {
  39. Type: &ast.TypeName{Name: "text"},
  40. },
  41. {
  42. Type: &ast.TypeName{Name: "text"},
  43. },
  44. {
  45. Type: &ast.TypeName{Name: "integer"},
  46. },
  47. {
  48. Type: &ast.TypeName{Name: "text"},
  49. },
  50. },
  51. ReturnType: &ast.TypeName{Name: "record"},
  52. },
  53. {
  54. Name: "connectby",
  55. Args: []*catalog.Argument{
  56. {
  57. Type: &ast.TypeName{Name: "text"},
  58. },
  59. {
  60. Type: &ast.TypeName{Name: "text"},
  61. },
  62. {
  63. Type: &ast.TypeName{Name: "text"},
  64. },
  65. {
  66. Type: &ast.TypeName{Name: "text"},
  67. },
  68. {
  69. Type: &ast.TypeName{Name: "text"},
  70. },
  71. {
  72. Type: &ast.TypeName{Name: "integer"},
  73. },
  74. },
  75. ReturnType: &ast.TypeName{Name: "record"},
  76. },
  77. {
  78. Name: "connectby",
  79. Args: []*catalog.Argument{
  80. {
  81. Type: &ast.TypeName{Name: "text"},
  82. },
  83. {
  84. Type: &ast.TypeName{Name: "text"},
  85. },
  86. {
  87. Type: &ast.TypeName{Name: "text"},
  88. },
  89. {
  90. Type: &ast.TypeName{Name: "text"},
  91. },
  92. {
  93. Type: &ast.TypeName{Name: "text"},
  94. },
  95. {
  96. Type: &ast.TypeName{Name: "integer"},
  97. },
  98. {
  99. Type: &ast.TypeName{Name: "text"},
  100. },
  101. },
  102. ReturnType: &ast.TypeName{Name: "record"},
  103. },
  104. {
  105. Name: "crosstab",
  106. Args: []*catalog.Argument{
  107. {
  108. Type: &ast.TypeName{Name: "text"},
  109. },
  110. },
  111. ReturnType: &ast.TypeName{Name: "record"},
  112. },
  113. {
  114. Name: "crosstab",
  115. Args: []*catalog.Argument{
  116. {
  117. Type: &ast.TypeName{Name: "text"},
  118. },
  119. {
  120. Type: &ast.TypeName{Name: "integer"},
  121. },
  122. },
  123. ReturnType: &ast.TypeName{Name: "record"},
  124. },
  125. {
  126. Name: "crosstab",
  127. Args: []*catalog.Argument{
  128. {
  129. Type: &ast.TypeName{Name: "text"},
  130. },
  131. {
  132. Type: &ast.TypeName{Name: "text"},
  133. },
  134. },
  135. ReturnType: &ast.TypeName{Name: "record"},
  136. },
  137. {
  138. Name: "crosstab2",
  139. Args: []*catalog.Argument{
  140. {
  141. Type: &ast.TypeName{Name: "text"},
  142. },
  143. },
  144. ReturnType: &ast.TypeName{Name: "tablefunc_crosstab_2"},
  145. },
  146. {
  147. Name: "crosstab3",
  148. Args: []*catalog.Argument{
  149. {
  150. Type: &ast.TypeName{Name: "text"},
  151. },
  152. },
  153. ReturnType: &ast.TypeName{Name: "tablefunc_crosstab_3"},
  154. },
  155. {
  156. Name: "crosstab4",
  157. Args: []*catalog.Argument{
  158. {
  159. Type: &ast.TypeName{Name: "text"},
  160. },
  161. },
  162. ReturnType: &ast.TypeName{Name: "tablefunc_crosstab_4"},
  163. },
  164. {
  165. Name: "normal_rand",
  166. Args: []*catalog.Argument{
  167. {
  168. Type: &ast.TypeName{Name: "integer"},
  169. },
  170. {
  171. Type: &ast.TypeName{Name: "double precision"},
  172. },
  173. {
  174. Type: &ast.TypeName{Name: "double precision"},
  175. },
  176. },
  177. ReturnType: &ast.TypeName{Name: "double precision"},
  178. },
  179. }
  180. func Tablefunc() *catalog.Schema {
  181. s := &catalog.Schema{Name: "pg_catalog"}
  182. s.Funcs = funcsTablefunc
  183. return s
  184. }