sqlboiler/templates_test/types.tpl

6 lines
203 B
Smarty
Raw Permalink Normal View History

{{- $varNameSingular := .Table.Name | singular | camelCase -}}
var (
{{$varNameSingular}}DBTypes = map[string]string{{"{"}}{{.Table.Columns | columnDBTypes | makeStringMap}}{{"}"}}
_ = bytes.MinRead
)