1
0

earthdistance.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 funcsEarthdistance = []*catalog.Function{
  8. {
  9. Name: "earth",
  10. Args: []*catalog.Argument{},
  11. ReturnType: &ast.TypeName{Name: "double precision"},
  12. },
  13. {
  14. Name: "earth_box",
  15. Args: []*catalog.Argument{
  16. {
  17. Type: &ast.TypeName{Name: "earth"},
  18. },
  19. {
  20. Type: &ast.TypeName{Name: "double precision"},
  21. },
  22. },
  23. ReturnType: &ast.TypeName{Name: "cube"},
  24. },
  25. {
  26. Name: "earth_distance",
  27. Args: []*catalog.Argument{
  28. {
  29. Type: &ast.TypeName{Name: "earth"},
  30. },
  31. {
  32. Type: &ast.TypeName{Name: "earth"},
  33. },
  34. },
  35. ReturnType: &ast.TypeName{Name: "double precision"},
  36. },
  37. {
  38. Name: "gc_to_sec",
  39. Args: []*catalog.Argument{
  40. {
  41. Type: &ast.TypeName{Name: "double precision"},
  42. },
  43. },
  44. ReturnType: &ast.TypeName{Name: "double precision"},
  45. },
  46. {
  47. Name: "geo_distance",
  48. Args: []*catalog.Argument{
  49. {
  50. Type: &ast.TypeName{Name: "point"},
  51. },
  52. {
  53. Type: &ast.TypeName{Name: "point"},
  54. },
  55. },
  56. ReturnType: &ast.TypeName{Name: "double precision"},
  57. },
  58. {
  59. Name: "latitude",
  60. Args: []*catalog.Argument{
  61. {
  62. Type: &ast.TypeName{Name: "earth"},
  63. },
  64. },
  65. ReturnType: &ast.TypeName{Name: "double precision"},
  66. },
  67. {
  68. Name: "ll_to_earth",
  69. Args: []*catalog.Argument{
  70. {
  71. Type: &ast.TypeName{Name: "double precision"},
  72. },
  73. {
  74. Type: &ast.TypeName{Name: "double precision"},
  75. },
  76. },
  77. ReturnType: &ast.TypeName{Name: "earth"},
  78. },
  79. {
  80. Name: "longitude",
  81. Args: []*catalog.Argument{
  82. {
  83. Type: &ast.TypeName{Name: "earth"},
  84. },
  85. },
  86. ReturnType: &ast.TypeName{Name: "double precision"},
  87. },
  88. {
  89. Name: "sec_to_gc",
  90. Args: []*catalog.Argument{
  91. {
  92. Type: &ast.TypeName{Name: "double precision"},
  93. },
  94. },
  95. ReturnType: &ast.TypeName{Name: "double precision"},
  96. },
  97. }
  98. func Earthdistance() *catalog.Schema {
  99. s := &catalog.Schema{Name: "pg_catalog"}
  100. s.Funcs = funcsEarthdistance
  101. return s
  102. }