xml2.go 3.3 KB

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