Renamed generated SetSchema to Set<SchemaName>Schema

This commit is contained in:
Jay 2022-12-01 12:46:42 +05:30
parent 471499ea00
commit a792fe6e0a
3 changed files with 33 additions and 7 deletions

View file

@ -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}}