Simplify all table column selection.
This commit is contained in:
parent
bb18e4d0f7
commit
8e57dcc32f
3 changed files with 43 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ type {{.ToGoStructName}} struct {
|
|||
{{.ToGoFieldName}} sqlbuilder.NonAliasColumn
|
||||
{{- end}}
|
||||
|
||||
All []sqlbuilder.Projection
|
||||
AllColumns sqlbuilder.ColumnList
|
||||
}
|
||||
|
||||
var {{.ToGoVarName}} = &{{.ToGoStructName}}{
|
||||
|
|
@ -23,7 +23,7 @@ var {{.ToGoVarName}} = &{{.ToGoStructName}}{
|
|||
{{.ToGoFieldName}}: {{.ToGoVarName}},
|
||||
{{- end}}
|
||||
|
||||
All: []sqlbuilder.Projection{ {{.ToGoColumnFieldList ", "}} },
|
||||
AllColumns: sqlbuilder.ColumnList{ {{.ToGoColumnFieldList ", "}} },
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue