/
pg_prewarm.go
56 lines (52 loc) · 1.15 KB
/
pg_prewarm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Code generated by sqlc-pg-gen. DO NOT EDIT.
package contrib
import (
"github.com/kyleconroy/sqlc/internal/sql/ast"
"github.com/kyleconroy/sqlc/internal/sql/catalog"
)
var funcsPgPrewarm = []*catalog.Function{
{
Name: "autoprewarm_dump_now",
Args: []*catalog.Argument{},
ReturnType: &ast.TypeName{Name: "bigint"},
},
{
Name: "autoprewarm_start_worker",
Args: []*catalog.Argument{},
ReturnType: &ast.TypeName{Name: "void"},
},
{
Name: "pg_prewarm",
Args: []*catalog.Argument{
{
Type: &ast.TypeName{Name: "regclass"},
},
{
Name: "mode",
HasDefault: true,
Type: &ast.TypeName{Name: "text"},
},
{
Name: "fork",
HasDefault: true,
Type: &ast.TypeName{Name: "text"},
},
{
Name: "first_block",
HasDefault: true,
Type: &ast.TypeName{Name: "bigint"},
},
{
Name: "last_block",
HasDefault: true,
Type: &ast.TypeName{Name: "bigint"},
},
},
ReturnType: &ast.TypeName{Name: "bigint"},
},
}
func PgPrewarm() *catalog.Schema {
s := &catalog.Schema{Name: "pg_catalog"}
s.Funcs = funcsPgPrewarm
return s
}