Skip to content

Commit ed73397

Browse files
committed
generate table name const
1 parent 028caa1 commit ed73397

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/main/00_struct.go.tpl

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ var {{$alias.UpSingular}}TableColumns = struct {
7171
{{end -}}
7272
}
7373
74+
const {{$alias.UpSingular}}TableName = "{{.Table.Name}}"
75+
7476
{{/* Generated where helpers for all types in the database */}}
7577
// Generated where
7678
{{- range .Table.Columns -}}

0 commit comments

Comments
 (0)