adminpack.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 funcsAdminpack = []*catalog.Function{
  8. {
  9. Name: "pg_file_rename",
  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: "boolean"},
  19. },
  20. {
  21. Name: "pg_file_rename",
  22. Args: []*catalog.Argument{
  23. {
  24. Type: &ast.TypeName{Name: "text"},
  25. },
  26. {
  27. Type: &ast.TypeName{Name: "text"},
  28. },
  29. {
  30. Type: &ast.TypeName{Name: "text"},
  31. },
  32. },
  33. ReturnType: &ast.TypeName{Name: "boolean"},
  34. },
  35. {
  36. Name: "pg_file_sync",
  37. Args: []*catalog.Argument{
  38. {
  39. Type: &ast.TypeName{Name: "text"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "void"},
  43. },
  44. {
  45. Name: "pg_file_unlink",
  46. Args: []*catalog.Argument{
  47. {
  48. Type: &ast.TypeName{Name: "text"},
  49. },
  50. },
  51. ReturnType: &ast.TypeName{Name: "boolean"},
  52. },
  53. {
  54. Name: "pg_file_write",
  55. Args: []*catalog.Argument{
  56. {
  57. Type: &ast.TypeName{Name: "text"},
  58. },
  59. {
  60. Type: &ast.TypeName{Name: "text"},
  61. },
  62. {
  63. Type: &ast.TypeName{Name: "boolean"},
  64. },
  65. },
  66. ReturnType: &ast.TypeName{Name: "bigint"},
  67. },
  68. {
  69. Name: "pg_logdir_ls",
  70. Args: []*catalog.Argument{},
  71. ReturnType: &ast.TypeName{Name: "record"},
  72. },
  73. }
  74. func Adminpack() *catalog.Schema {
  75. s := &catalog.Schema{Name: "pg_catalog"}
  76. s.Funcs = funcsAdminpack
  77. return s
  78. }