pg_stat_statements.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 funcsPgStatStatements = []*catalog.Function{
  8. {
  9. Name: "pg_stat_statements",
  10. Args: []*catalog.Argument{
  11. {
  12. Name: "showtext",
  13. Type: &ast.TypeName{Name: "boolean"},
  14. },
  15. },
  16. ReturnType: &ast.TypeName{Name: "record"},
  17. },
  18. {
  19. Name: "pg_stat_statements_info",
  20. Args: []*catalog.Argument{},
  21. ReturnType: &ast.TypeName{Name: "record"},
  22. },
  23. {
  24. Name: "pg_stat_statements_reset",
  25. Args: []*catalog.Argument{
  26. {
  27. Name: "userid",
  28. HasDefault: true,
  29. Type: &ast.TypeName{Name: "oid"},
  30. },
  31. {
  32. Name: "dbid",
  33. HasDefault: true,
  34. Type: &ast.TypeName{Name: "oid"},
  35. },
  36. {
  37. Name: "queryid",
  38. HasDefault: true,
  39. Type: &ast.TypeName{Name: "bigint"},
  40. },
  41. },
  42. ReturnType: &ast.TypeName{Name: "void"},
  43. },
  44. }
  45. func PgStatStatements() *catalog.Schema {
  46. s := &catalog.Schema{Name: "pg_catalog"}
  47. s.Funcs = funcsPgStatStatements
  48. return s
  49. }