Lots of progress on command/query bus concept, in memory sql testing, datasource admin

This commit is contained in:
Torkel Ödegaard
2014-12-16 21:05:49 +01:00
parent 27f07e9de2
commit c7ed348ee8
8 changed files with 170 additions and 52 deletions

View File

@@ -70,12 +70,7 @@ func runWeb(*cli.Context) {
social.NewOAuthService()
sqlstore.Init()
// init database
sqlstore.LoadModelsConfig()
if err := sqlstore.NewEngine(); err != nil {
log.Fatal(4, "fail to initialize orm engine: %v", err)
}
sqlstore.NewEngine()
m := newMacaron()
api.Register(m)