func CheckError(err error)
Check if an error happened and panic on it if so
@param err An error object to report
func GetConnection(db_info DbInfo) *sql.DB
Establish a connection to the database
@param db_info A DbInfo type with information to connect to the database @return A DB object with an open connection to the database
Contains all necessary data to connect to the database
type DbInfo struct { Host string Port int User string Password string Dbname string Profile string Prefix string IsSsl bool CapoPath string }