Add DefaultAlias option to TableSQLBuilder
This commit is contained in:
parent
a2eb15e566
commit
39f9996b34
4 changed files with 55 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ import (
|
|||
"github.com/go-jet/jet/v2/{{dialect.PackageName}}"
|
||||
)
|
||||
|
||||
var {{tableTemplate.InstanceName}} = new{{tableTemplate.TypeName}}("{{schemaName}}", "{{.Name}}", "")
|
||||
var {{tableTemplate.InstanceName}} = new{{tableTemplate.TypeName}}("{{schemaName}}", "{{.Name}}", "{{tableTemplate.DefaultAlias}}")
|
||||
|
||||
type {{structImplName}} struct {
|
||||
{{dialect.PackageName}}.Table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue