1
0

fuzzystrmatch.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 funcsFuzzystrmatch = []*catalog.Function{
  8. {
  9. Name: "difference",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "text"},
  13. },
  14. {
  15. Type: &ast.TypeName{Name: "text"},
  16. },
  17. },
  18. ReturnType: &ast.TypeName{Name: "integer"},
  19. },
  20. {
  21. Name: "dmetaphone",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "text"},
  25. },
  26. },
  27. ReturnType: &ast.TypeName{Name: "text"},
  28. },
  29. {
  30. Name: "dmetaphone_alt",
  31. Args: []*catalog.Argument{
  32. {
  33. Type: &ast.TypeName{Name: "text"},
  34. },
  35. },
  36. ReturnType: &ast.TypeName{Name: "text"},
  37. },
  38. {
  39. Name: "levenshtein",
  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: "integer"},
  49. },
  50. {
  51. Name: "levenshtein",
  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: "integer"},
  61. },
  62. {
  63. Type: &ast.TypeName{Name: "integer"},
  64. },
  65. {
  66. Type: &ast.TypeName{Name: "integer"},
  67. },
  68. },
  69. ReturnType: &ast.TypeName{Name: "integer"},
  70. },
  71. {
  72. Name: "levenshtein_less_equal",
  73. Args: []*catalog.Argument{
  74. {
  75. Type: &ast.TypeName{Name: "text"},
  76. },
  77. {
  78. Type: &ast.TypeName{Name: "text"},
  79. },
  80. {
  81. Type: &ast.TypeName{Name: "integer"},
  82. },
  83. },
  84. ReturnType: &ast.TypeName{Name: "integer"},
  85. },
  86. {
  87. Name: "levenshtein_less_equal",
  88. Args: []*catalog.Argument{
  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: "integer"},
  100. },
  101. {
  102. Type: &ast.TypeName{Name: "integer"},
  103. },
  104. {
  105. Type: &ast.TypeName{Name: "integer"},
  106. },
  107. },
  108. ReturnType: &ast.TypeName{Name: "integer"},
  109. },
  110. {
  111. Name: "metaphone",
  112. Args: []*catalog.Argument{
  113. {
  114. Type: &ast.TypeName{Name: "text"},
  115. },
  116. {
  117. Type: &ast.TypeName{Name: "integer"},
  118. },
  119. },
  120. ReturnType: &ast.TypeName{Name: "text"},
  121. },
  122. {
  123. Name: "soundex",
  124. Args: []*catalog.Argument{
  125. {
  126. Type: &ast.TypeName{Name: "text"},
  127. },
  128. },
  129. ReturnType: &ast.TypeName{Name: "text"},
  130. },
  131. {
  132. Name: "text_soundex",
  133. Args: []*catalog.Argument{
  134. {
  135. Type: &ast.TypeName{Name: "text"},
  136. },
  137. },
  138. ReturnType: &ast.TypeName{Name: "text"},
  139. },
  140. }
  141. func Fuzzystrmatch() *catalog.Schema {
  142. s := &catalog.Schema{Name: "pg_catalog"}
  143. s.Funcs = funcsFuzzystrmatch
  144. return s
  145. }