Use extensive piping throughout the templates
- Haskell ftw
This commit is contained in:
parent
5fbcb27f3f
commit
119e683952
19 changed files with 112 additions and 109 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue