postgres_fdw.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 funcsPostgresFdw = []*catalog.Function{
  8. {
  9. Name: "postgres_fdw_disconnect",
  10. Args: []*catalog.Argument{
  11. {
  12. Type: &ast.TypeName{Name: "text"},
  13. },
  14. },
  15. ReturnType: &ast.TypeName{Name: "boolean"},
  16. },
  17. {
  18. Name: "postgres_fdw_disconnect_all",
  19. Args: []*catalog.Argument{},
  20. ReturnType: &ast.TypeName{Name: "boolean"},
  21. },
  22. {
  23. Name: "postgres_fdw_get_connections",
  24. Args: []*catalog.Argument{},
  25. ReturnType: &ast.TypeName{Name: "record"},
  26. },
  27. {
  28. Name: "postgres_fdw_handler",
  29. Args: []*catalog.Argument{},
  30. ReturnType: &ast.TypeName{Name: "fdw_handler"},
  31. },
  32. {
  33. Name: "postgres_fdw_validator",
  34. Args: []*catalog.Argument{
  35. {
  36. Type: &ast.TypeName{Name: "text[]"},
  37. },
  38. {
  39. Type: &ast.TypeName{Name: "oid"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "void"},
  43. },
  44. }
  45. func PostgresFdw() *catalog.Schema {
  46. s := &catalog.Schema{Name: "pg_catalog"}
  47. s.Funcs = funcsPostgresFdw
  48. return s
  49. }