Esempio n. 1
0
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)
}
Esempio n. 2
0
func getConn() *db.MConn {
	return db.GetConn(
		config.Settings.Moire.DbUrl,
		config.Settings.Moire.DbName)
}