Renamed generated SetSchema to Set<SchemaName>Schema
This commit is contained in:
parent
471499ea00
commit
a792fe6e0a
3 changed files with 33 additions and 7 deletions
|
|
@ -98,7 +98,7 @@ func new{{tableTemplate.TypeName}}Impl(schemaName, tableName, alias string) {{st
|
|||
`
|
||||
|
||||
var tableSqlBuilderSetSchemaTemplate = `
|
||||
func SetSchema(schema string) {
|
||||
func {{setSchemaMethodName}}(schema string) {
|
||||
{{- range .}}
|
||||
{{ .InstanceName }} = {{ .InstanceName }}.FromSchema(schema)
|
||||
{{- end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue