1
0

pg_prewarm.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 funcsPgPrewarm = []*catalog.Function{
  8. {
  9. Name: "autoprewarm_dump_now",
  10. Args: []*catalog.Argument{},
  11. ReturnType: &ast.TypeName{Name: "bigint"},
  12. },
  13. {
  14. Name: "autoprewarm_start_worker",
  15. Args: []*catalog.Argument{},
  16. ReturnType: &ast.TypeName{Name: "void"},
  17. },
  18. {
  19. Name: "pg_prewarm",
  20. Args: []*catalog.Argument{
  21. {
  22. Type: &ast.TypeName{Name: "regclass"},
  23. },
  24. {
  25. Name: "mode",
  26. HasDefault: true,
  27. Type: &ast.TypeName{Name: "text"},
  28. },
  29. {
  30. Name: "fork",
  31. HasDefault: true,
  32. Type: &ast.TypeName{Name: "text"},
  33. },
  34. {
  35. Name: "first_block",
  36. HasDefault: true,
  37. Type: &ast.TypeName{Name: "bigint"},
  38. },
  39. {
  40. Name: "last_block",
  41. HasDefault: true,
  42. Type: &ast.TypeName{Name: "bigint"},
  43. },
  44. },
  45. ReturnType: &ast.TypeName{Name: "bigint"},
  46. },
  47. }
  48. func PgPrewarm() *catalog.Schema {
  49. s := &catalog.Schema{Name: "pg_catalog"}
  50. s.Funcs = funcsPgPrewarm
  51. return s
  52. }