func setupDatabase() { log.Debug("Connecting Database:" + config.Settings.Moire.DbUrl) db.Conn = db.GetConn(config.Settings.Moire.DbUrl, config.Settings.Moire.DbName) log.Println("Database Connected :" + config.Settings.Moire.DbName) }
func getConn() *db.MConn { return db.GetConn( config.Settings.Moire.DbUrl, config.Settings.Moire.DbName) }