Skip to content

Commit

Permalink
Merge pull request #6 from tiendc/expose-more-columns-declaration
Browse files Browse the repository at this point in the history
Expose more columns declaration to public
  • Loading branch information
tiendc authored Jan 3, 2024
2 parents 0b52ad5 + f16200d commit e53cc36
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 e53cc36

Please sign in to comment.