-
-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathhints.go
More file actions
86 lines (65 loc) · 2.64 KB
/
Copy pathhints.go
File metadata and controls
86 lines (65 loc) · 2.64 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package sm
import (
"github.com/stephenafamo/bob"
"github.com/stephenafamo/bob/dialect/psql/dialect"
)
func SeqScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.SeqScan[*dialect.SelectQuery](table)
}
func NoSeqScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoSeqScan[*dialect.SelectQuery](table)
}
func IndexScan(table string, indexes ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.IndexScan[*dialect.SelectQuery](table, indexes...)
}
func NoIndexScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoIndexScan[*dialect.SelectQuery](table)
}
func IndexOnlyScan(table string, indexes ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.IndexOnlyScan[*dialect.SelectQuery](table, indexes...)
}
func NoIndexOnlyScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoIndexOnlyScan[*dialect.SelectQuery](table)
}
func BitmapScan(table string, indexes ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.BitmapScan[*dialect.SelectQuery](table, indexes...)
}
func NoBitmapScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoBitmapScan[*dialect.SelectQuery](table)
}
func TidScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.TidScan[*dialect.SelectQuery](table)
}
func NoTidScan(table string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoTidScan[*dialect.SelectQuery](table)
}
func NestLoop(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.NestLoop[*dialect.SelectQuery](tables...)
}
func NoNestLoop(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoNestLoop[*dialect.SelectQuery](tables...)
}
func HashJoin(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.HashJoin[*dialect.SelectQuery](tables...)
}
func NoHashJoin(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoHashJoin[*dialect.SelectQuery](tables...)
}
func MergeJoin(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.MergeJoin[*dialect.SelectQuery](tables...)
}
func NoMergeJoin(tables ...string) bob.Mod[*dialect.SelectQuery] {
return dialect.NoMergeJoin[*dialect.SelectQuery](tables...)
}
func Leading(spec string) bob.Mod[*dialect.SelectQuery] {
return dialect.Leading[*dialect.SelectQuery](spec)
}
func Rows(spec string) bob.Mod[*dialect.SelectQuery] {
return dialect.Rows[*dialect.SelectQuery](spec)
}
func Parallel(table string, nworkers int, strength string) bob.Mod[*dialect.SelectQuery] {
return dialect.Parallel[*dialect.SelectQuery](table, nworkers, strength)
}
func Set(variable string, value string) bob.Mod[*dialect.SelectQuery] {
return dialect.Set[*dialect.SelectQuery](variable, value)
}