/*
Does all processing related to setting up the database for moebot
*/
Does all processing related to setting up the database for moebot
/ * Does all processing related to setting up the database for moebot * /
func SetupDatabase(host string, dbPass string, moeDataPass string) {
	rootDb := connectToRoot(host, dbPass)
	createMoebotDatabase(rootDb, moeDataPass)
	rootDb.Close()
	moeDb = openDb(createConnString(host, "moebot", moeDataPass, "moebot"))
	createTables()
	updateTables()
	log.Println("Finished initializing the DB and creating tables")
}
func SetupDatabase ( host string , dbPass string , moeDataPass string ) { rootDb := connectToRoot ( host , dbPass ) createMoebotDatabase ( rootDb , moeDataPass ) rootDb . Close ( ) moeDb = openDb ( createConnString ( host , " " , moeDataPass , " " ) ) createTables ( ) updateTables ( ) log . Println ( " " ) }
Does all processing related to setting up the database for moebot
Does all processing related to setting up the database for moebot
// actually connect with moebot now