1
0

pgstattuple.go 1.9 KB

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