We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6252610 commit a33bdbaCopy full SHA for a33bdba
generator.go
@@ -14,15 +14,16 @@ type Generator struct {
14
}
15
16
type data struct {
17
- PackageName string
18
- CachePlanRaw string
+ PackageName string
+ CachePlanRaw string
19
+ TableSchemaRaw string
20
21
-func NewGenerator(cachePlanRaw string) *Generator {
22
+func NewGenerator(cachePlanRaw string, tableSchemaRaw string) *Generator {
23
return &Generator{
24
driverTmpl: template.Must(template.ParseFiles("template/driver.tmpl")),
25
stmtTmpl: template.Must(template.ParseFiles("template/stmt.tmpl")),
- data: data{CachePlanRaw: escapeGoString(cachePlanRaw)},
26
+ data: data{CachePlanRaw: escapeGoString(cachePlanRaw), TableSchemaRaw: escapeGoString(tableSchemaRaw)},
27
28
29
0 commit comments