1
0

pg_trgm.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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 funcsPgTrgm = []*catalog.Function{
  8. {
  9. Name: "gtrgm_in",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "cstring"},
  13. },
  14. },
  15. ReturnType: &ast.TypeName{Name: "gtrgm"},
  16. },
  17. {
  18. Name: "gtrgm_out",
  19. Args: []*catalog.Argument{
  20. {
  21. Type: &ast.TypeName{Name: "gtrgm"},
  22. },
  23. },
  24. ReturnType: &ast.TypeName{Name: "cstring"},
  25. },
  26. {
  27. Name: "set_limit",
  28. Args: []*catalog.Argument{
  29. {
  30. Type: &ast.TypeName{Name: "real"},
  31. },
  32. },
  33. ReturnType: &ast.TypeName{Name: "real"},
  34. },
  35. {
  36. Name: "show_limit",
  37. Args: []*catalog.Argument{},
  38. ReturnType: &ast.TypeName{Name: "real"},
  39. },
  40. {
  41. Name: "show_trgm",
  42. Args: []*catalog.Argument{
  43. {
  44. Type: &ast.TypeName{Name: "text"},
  45. },
  46. },
  47. ReturnType: &ast.TypeName{Name: "text[]"},
  48. },
  49. {
  50. Name: "similarity",
  51. Args: []*catalog.Argument{
  52. {
  53. Type: &ast.TypeName{Name: "text"},
  54. },
  55. {
  56. Type: &ast.TypeName{Name: "text"},
  57. },
  58. },
  59. ReturnType: &ast.TypeName{Name: "real"},
  60. },
  61. {
  62. Name: "similarity_dist",
  63. Args: []*catalog.Argument{
  64. {
  65. Type: &ast.TypeName{Name: "text"},
  66. },
  67. {
  68. Type: &ast.TypeName{Name: "text"},
  69. },
  70. },
  71. ReturnType: &ast.TypeName{Name: "real"},
  72. },
  73. {
  74. Name: "similarity_op",
  75. Args: []*catalog.Argument{
  76. {
  77. Type: &ast.TypeName{Name: "text"},
  78. },
  79. {
  80. Type: &ast.TypeName{Name: "text"},
  81. },
  82. },
  83. ReturnType: &ast.TypeName{Name: "boolean"},
  84. },
  85. {
  86. Name: "strict_word_similarity",
  87. Args: []*catalog.Argument{
  88. {
  89. Type: &ast.TypeName{Name: "text"},
  90. },
  91. {
  92. Type: &ast.TypeName{Name: "text"},
  93. },
  94. },
  95. ReturnType: &ast.TypeName{Name: "real"},
  96. },
  97. {
  98. Name: "strict_word_similarity_commutator_op",
  99. Args: []*catalog.Argument{
  100. {
  101. Type: &ast.TypeName{Name: "text"},
  102. },
  103. {
  104. Type: &ast.TypeName{Name: "text"},
  105. },
  106. },
  107. ReturnType: &ast.TypeName{Name: "boolean"},
  108. },
  109. {
  110. Name: "strict_word_similarity_dist_commutator_op",
  111. Args: []*catalog.Argument{
  112. {
  113. Type: &ast.TypeName{Name: "text"},
  114. },
  115. {
  116. Type: &ast.TypeName{Name: "text"},
  117. },
  118. },
  119. ReturnType: &ast.TypeName{Name: "real"},
  120. },
  121. {
  122. Name: "strict_word_similarity_dist_op",
  123. Args: []*catalog.Argument{
  124. {
  125. Type: &ast.TypeName{Name: "text"},
  126. },
  127. {
  128. Type: &ast.TypeName{Name: "text"},
  129. },
  130. },
  131. ReturnType: &ast.TypeName{Name: "real"},
  132. },
  133. {
  134. Name: "strict_word_similarity_op",
  135. Args: []*catalog.Argument{
  136. {
  137. Type: &ast.TypeName{Name: "text"},
  138. },
  139. {
  140. Type: &ast.TypeName{Name: "text"},
  141. },
  142. },
  143. ReturnType: &ast.TypeName{Name: "boolean"},
  144. },
  145. {
  146. Name: "word_similarity",
  147. Args: []*catalog.Argument{
  148. {
  149. Type: &ast.TypeName{Name: "text"},
  150. },
  151. {
  152. Type: &ast.TypeName{Name: "text"},
  153. },
  154. },
  155. ReturnType: &ast.TypeName{Name: "real"},
  156. },
  157. {
  158. Name: "word_similarity_commutator_op",
  159. Args: []*catalog.Argument{
  160. {
  161. Type: &ast.TypeName{Name: "text"},
  162. },
  163. {
  164. Type: &ast.TypeName{Name: "text"},
  165. },
  166. },
  167. ReturnType: &ast.TypeName{Name: "boolean"},
  168. },
  169. {
  170. Name: "word_similarity_dist_commutator_op",
  171. Args: []*catalog.Argument{
  172. {
  173. Type: &ast.TypeName{Name: "text"},
  174. },
  175. {
  176. Type: &ast.TypeName{Name: "text"},
  177. },
  178. },
  179. ReturnType: &ast.TypeName{Name: "real"},
  180. },
  181. {
  182. Name: "word_similarity_dist_op",
  183. Args: []*catalog.Argument{
  184. {
  185. Type: &ast.TypeName{Name: "text"},
  186. },
  187. {
  188. Type: &ast.TypeName{Name: "text"},
  189. },
  190. },
  191. ReturnType: &ast.TypeName{Name: "real"},
  192. },
  193. {
  194. Name: "word_similarity_op",
  195. Args: []*catalog.Argument{
  196. {
  197. Type: &ast.TypeName{Name: "text"},
  198. },
  199. {
  200. Type: &ast.TypeName{Name: "text"},
  201. },
  202. },
  203. ReturnType: &ast.TypeName{Name: "boolean"},
  204. },
  205. }
  206. func PgTrgm() *catalog.Schema {
  207. s := &catalog.Schema{Name: "pg_catalog"}
  208. s.Funcs = funcsPgTrgm
  209. return s
  210. }