Fixed issue with collection types in udt. empty type colums skiped. Added test for udt.

This commit is contained in:
pavle995
2022-05-08 15:08:09 +02:00
committed by Michal Jan Matczuk
parent a62ba24cf9
commit fc92258512
5 changed files with 41 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ func renderTemplate(md *gocql.KeyspaceMetadata) ([]byte, error) {
New("keyspace.tmpl").
Funcs(template.FuncMap{"camelize": camelize}).
Funcs(template.FuncMap{"mapScyllaToGoType": mapScyllaToGoType}).
Funcs(template.FuncMap{"getNativeTypeSting": getNativeTypeSting}).
Funcs(template.FuncMap{"typeToString": typeToString}).
Parse(keyspaceTmpl)
if err != nil {