1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: support for cockroachdb (resolve #90)

This commit is contained in:
Ferdinand Mütsch
2021-01-18 21:34:08 +01:00
parent 1aecfc4ca3
commit acda62488d
5 changed files with 32 additions and 6 deletions

View File

@ -31,7 +31,7 @@ func loadTemplates() {
return config.Get().Version
},
"getDbType": func() string {
return strings.ToLower(config.Get().Db.Dialect)
return strings.ToLower(config.Get().Db.Type)
},
"htmlSafe": func(html string) template.HTML {
return template.HTML(html)