Fix/issue#1447 (#1458)

* Add data for template to render

* fix #1447

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2022-01-18 10:36:38 +08:00
committed by GitHub
parent bf2feee5b7
commit e57fa8ff53
12 changed files with 33 additions and 14 deletions

View File

@@ -31,6 +31,7 @@ func genVars(table Table, withCache, postgreSql bool) (string, error) {
"originalPrimaryKey": wrapWithRawString(table.PrimaryKey.Name.Source(), postgreSql),
"withCache": withCache,
"postgreSql": postgreSql,
"data": table,
})
if err != nil {
return "", err