Save schema name to table_info struct.
This commit is contained in:
parent
75f8e0dfec
commit
7d7dda3b7a
11 changed files with 225 additions and 232 deletions
|
|
@ -16,7 +16,7 @@ type {{.ToGoStructName}} struct {
|
|||
}
|
||||
|
||||
var {{.ToGoVarName}} = &{{.ToGoStructName}}{
|
||||
Table: *sqlbuilder.NewTable("{{.Name}}", {{.ToGoColumnFieldList ", "}}),
|
||||
Table: *sqlbuilder.NewTable("{{.DatabaseInfo.SchemaName}}", "{{.Name}}", {{.ToGoColumnFieldList ", "}}),
|
||||
|
||||
//Columns
|
||||
{{- range .Columns}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue