go-jet / jet

Type safe SQL builder with code generation and automatic query result data mapping
Apache License 2.0
2.23k stars 110 forks source link

request(generator): table alias #319

Closed yofriadi closed 4 months ago

yofriadi commented 4 months ago

I see that currently generator does not support option to alias table name but defined in the generated code here file_templates.go

var {{tableTemplate.InstanceName}} = new{{tableTemplate.TypeName}}("{{schemaName}}", "{{.Name}}", "")
//                                                                                                ^^ here

this issue created to track this feature, cmiiw.

go-jet commented 4 months ago

Hi @yofriadi ,

This feature has been added to master, and it will be part of next release (in week or two). You can use it already, just reference jet master in you go.mod.

yofriadi commented 4 months ago

nice, hope it will released soon, thank you!