seg.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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 funcsSeg = []*catalog.Function{
  8. {
  9. Name: "seg_center",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "seg"},
  13. },
  14. },
  15. ReturnType: &ast.TypeName{Name: "real"},
  16. },
  17. {
  18. Name: "seg_cmp",
  19. Args: []*catalog.Argument{
  20. {
  21. Type: &ast.TypeName{Name: "seg"},
  22. },
  23. {
  24. Type: &ast.TypeName{Name: "seg"},
  25. },
  26. },
  27. ReturnType: &ast.TypeName{Name: "integer"},
  28. },
  29. {
  30. Name: "seg_contained",
  31. Args: []*catalog.Argument{
  32. {
  33. Type: &ast.TypeName{Name: "seg"},
  34. },
  35. {
  36. Type: &ast.TypeName{Name: "seg"},
  37. },
  38. },
  39. ReturnType: &ast.TypeName{Name: "boolean"},
  40. },
  41. {
  42. Name: "seg_contains",
  43. Args: []*catalog.Argument{
  44. {
  45. Type: &ast.TypeName{Name: "seg"},
  46. },
  47. {
  48. Type: &ast.TypeName{Name: "seg"},
  49. },
  50. },
  51. ReturnType: &ast.TypeName{Name: "boolean"},
  52. },
  53. {
  54. Name: "seg_different",
  55. Args: []*catalog.Argument{
  56. {
  57. Type: &ast.TypeName{Name: "seg"},
  58. },
  59. {
  60. Type: &ast.TypeName{Name: "seg"},
  61. },
  62. },
  63. ReturnType: &ast.TypeName{Name: "boolean"},
  64. },
  65. {
  66. Name: "seg_ge",
  67. Args: []*catalog.Argument{
  68. {
  69. Type: &ast.TypeName{Name: "seg"},
  70. },
  71. {
  72. Type: &ast.TypeName{Name: "seg"},
  73. },
  74. },
  75. ReturnType: &ast.TypeName{Name: "boolean"},
  76. },
  77. {
  78. Name: "seg_gt",
  79. Args: []*catalog.Argument{
  80. {
  81. Type: &ast.TypeName{Name: "seg"},
  82. },
  83. {
  84. Type: &ast.TypeName{Name: "seg"},
  85. },
  86. },
  87. ReturnType: &ast.TypeName{Name: "boolean"},
  88. },
  89. {
  90. Name: "seg_in",
  91. Args: []*catalog.Argument{
  92. {
  93. Type: &ast.TypeName{Name: "cstring"},
  94. },
  95. },
  96. ReturnType: &ast.TypeName{Name: "seg"},
  97. },
  98. {
  99. Name: "seg_inter",
  100. Args: []*catalog.Argument{
  101. {
  102. Type: &ast.TypeName{Name: "seg"},
  103. },
  104. {
  105. Type: &ast.TypeName{Name: "seg"},
  106. },
  107. },
  108. ReturnType: &ast.TypeName{Name: "seg"},
  109. },
  110. {
  111. Name: "seg_le",
  112. Args: []*catalog.Argument{
  113. {
  114. Type: &ast.TypeName{Name: "seg"},
  115. },
  116. {
  117. Type: &ast.TypeName{Name: "seg"},
  118. },
  119. },
  120. ReturnType: &ast.TypeName{Name: "boolean"},
  121. },
  122. {
  123. Name: "seg_left",
  124. Args: []*catalog.Argument{
  125. {
  126. Type: &ast.TypeName{Name: "seg"},
  127. },
  128. {
  129. Type: &ast.TypeName{Name: "seg"},
  130. },
  131. },
  132. ReturnType: &ast.TypeName{Name: "boolean"},
  133. },
  134. {
  135. Name: "seg_lower",
  136. Args: []*catalog.Argument{
  137. {
  138. Type: &ast.TypeName{Name: "seg"},
  139. },
  140. },
  141. ReturnType: &ast.TypeName{Name: "real"},
  142. },
  143. {
  144. Name: "seg_lt",
  145. Args: []*catalog.Argument{
  146. {
  147. Type: &ast.TypeName{Name: "seg"},
  148. },
  149. {
  150. Type: &ast.TypeName{Name: "seg"},
  151. },
  152. },
  153. ReturnType: &ast.TypeName{Name: "boolean"},
  154. },
  155. {
  156. Name: "seg_out",
  157. Args: []*catalog.Argument{
  158. {
  159. Type: &ast.TypeName{Name: "seg"},
  160. },
  161. },
  162. ReturnType: &ast.TypeName{Name: "cstring"},
  163. },
  164. {
  165. Name: "seg_over_left",
  166. Args: []*catalog.Argument{
  167. {
  168. Type: &ast.TypeName{Name: "seg"},
  169. },
  170. {
  171. Type: &ast.TypeName{Name: "seg"},
  172. },
  173. },
  174. ReturnType: &ast.TypeName{Name: "boolean"},
  175. },
  176. {
  177. Name: "seg_over_right",
  178. Args: []*catalog.Argument{
  179. {
  180. Type: &ast.TypeName{Name: "seg"},
  181. },
  182. {
  183. Type: &ast.TypeName{Name: "seg"},
  184. },
  185. },
  186. ReturnType: &ast.TypeName{Name: "boolean"},
  187. },
  188. {
  189. Name: "seg_overlap",
  190. Args: []*catalog.Argument{
  191. {
  192. Type: &ast.TypeName{Name: "seg"},
  193. },
  194. {
  195. Type: &ast.TypeName{Name: "seg"},
  196. },
  197. },
  198. ReturnType: &ast.TypeName{Name: "boolean"},
  199. },
  200. {
  201. Name: "seg_right",
  202. Args: []*catalog.Argument{
  203. {
  204. Type: &ast.TypeName{Name: "seg"},
  205. },
  206. {
  207. Type: &ast.TypeName{Name: "seg"},
  208. },
  209. },
  210. ReturnType: &ast.TypeName{Name: "boolean"},
  211. },
  212. {
  213. Name: "seg_same",
  214. Args: []*catalog.Argument{
  215. {
  216. Type: &ast.TypeName{Name: "seg"},
  217. },
  218. {
  219. Type: &ast.TypeName{Name: "seg"},
  220. },
  221. },
  222. ReturnType: &ast.TypeName{Name: "boolean"},
  223. },
  224. {
  225. Name: "seg_size",
  226. Args: []*catalog.Argument{
  227. {
  228. Type: &ast.TypeName{Name: "seg"},
  229. },
  230. },
  231. ReturnType: &ast.TypeName{Name: "real"},
  232. },
  233. {
  234. Name: "seg_union",
  235. Args: []*catalog.Argument{
  236. {
  237. Type: &ast.TypeName{Name: "seg"},
  238. },
  239. {
  240. Type: &ast.TypeName{Name: "seg"},
  241. },
  242. },
  243. ReturnType: &ast.TypeName{Name: "seg"},
  244. },
  245. {
  246. Name: "seg_upper",
  247. Args: []*catalog.Argument{
  248. {
  249. Type: &ast.TypeName{Name: "seg"},
  250. },
  251. },
  252. ReturnType: &ast.TypeName{Name: "real"},
  253. },
  254. }
  255. func Seg() *catalog.Schema {
  256. s := &catalog.Schema{Name: "pg_catalog"}
  257. s.Funcs = funcsSeg
  258. return s
  259. }