mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
chore: update go-zero version (#5093)
Signed-off-by: kevin <wanjunfeng@gmail.com>
This commit is contained in:
@@ -36,15 +36,15 @@ func genVars(table Table, withCache, postgreSql bool) (string, error) {
|
||||
"postgreSql": postgreSql,
|
||||
"data": table,
|
||||
"ignoreColumns": func() string {
|
||||
var set = collection.NewSet()
|
||||
var set = collection.NewSet[string]()
|
||||
for _, c := range table.ignoreColumns {
|
||||
if postgreSql {
|
||||
set.AddStr(fmt.Sprintf(`"%s"`, c))
|
||||
set.Add(fmt.Sprintf(`"%s"`, c))
|
||||
} else {
|
||||
set.AddStr(fmt.Sprintf("\"`%s`\"", c))
|
||||
set.Add(fmt.Sprintf("\"`%s`\"", c))
|
||||
}
|
||||
}
|
||||
list := set.KeysStr()
|
||||
list := set.Keys()
|
||||
sort.Strings(list)
|
||||
return strings.Join(list, ", ")
|
||||
}(),
|
||||
|
||||
Reference in New Issue
Block a user