Use extensive piping throughout the templates

- Haskell ftw
This commit is contained in:
Aaron L 2016-06-19 22:22:50 -07:00
parent 5fbcb27f3f
commit 119e683952
19 changed files with 112 additions and 109 deletions

View file

@ -78,6 +78,8 @@ func (s *State) Run(includeTests bool) error {
Tables: s.Tables,
DriverName: s.Config.DriverName,
PkgName: s.Config.PkgName,
StringFuncs: templateStringMappers,
}
if err := generateSingletonOutput(s, singletonData); err != nil {
@ -103,6 +105,8 @@ func (s *State) Run(includeTests bool) error {
Table: table,
DriverName: s.Config.DriverName,
PkgName: s.Config.PkgName,
StringFuncs: templateStringMappers,
}
// Generate the regular templates