Skip to content

Commit

Permalink
Expose more columns declaration to public
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendc committed Jan 3, 2024
1 parent 0b52ad5 commit f16200d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/boilv4/mysql/101_types.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// Expose table columns
var (
{{$alias.UpSingular}}AllColumns = {{$alias.DownSingular}}AllColumns
{{$alias.UpSingular}}ColumnsWithoutDefault = {{$alias.DownSingular}}ColumnsWithoutDefault
{{$alias.UpSingular}}ColumnsWithDefault = {{$alias.DownSingular}}ColumnsWithDefault
{{$alias.UpSingular}}PrimaryKeyColumns = {{$alias.DownSingular}}PrimaryKeyColumns
{{$alias.UpSingular}}GeneratedColumns = {{$alias.DownSingular}}GeneratedColumns
)

{{end -}}
3 changes: 3 additions & 0 deletions templates/boilv4/postgres/101_types.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
// Expose table columns
var (
{{$alias.UpSingular}}AllColumns = {{$alias.DownSingular}}AllColumns
{{$alias.UpSingular}}ColumnsWithoutDefault = {{$alias.DownSingular}}ColumnsWithoutDefault
{{$alias.UpSingular}}ColumnsWithDefault = {{$alias.DownSingular}}ColumnsWithDefault
{{$alias.UpSingular}}PrimaryKeyColumns = {{$alias.DownSingular}}PrimaryKeyColumns
{{$alias.UpSingular}}GeneratedColumns = {{$alias.DownSingular}}GeneratedColumns
)

{{end -}}

0 comments on commit f16200d

Please sign in to comment.