go-jet / jet

Type safe SQL builder with code generation and automatic query result data mapping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

request(generator): table alias

yofriadi opened this issue · comments

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.

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.

nice, hope it will released soon, thank you!